MilesCranmer commited on
Commit
cce046c
1 Parent(s): d3b73f7

Fix printing of Julia output

Browse files
Files changed (1) hide show
  1. pysr/sr.py +1 -3
pysr/sr.py CHANGED
@@ -411,9 +411,7 @@ def _cmd_runner(command, **kwargs):
411
  .replace('\\r', '\r')
412
  .encode(sys.stdout.encoding, errors='replace'))
413
 
414
- print(decoded_line, end='')
415
-
416
-
417
 
418
  process.stdout.close()
419
  process.wait()
 
411
  .replace('\\r', '\r')
412
  .encode(sys.stdout.encoding, errors='replace'))
413
 
414
+ sys.stdout.buffer.write(decoded_line)
 
 
415
 
416
  process.stdout.close()
417
  process.wait()