Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
f5cd852
1
Parent(s):
9640492
Fix subprocess call which hangs
Browse files- pysr/sr.py +1 -1
pysr/sr.py
CHANGED
@@ -302,7 +302,7 @@ def _final_pysr_process(julia_optimization, procs, runfile_filename, timeout, **
|
|
302 |
if timeout is not None:
|
303 |
command = [f'timeout', f'{timeout}'] + command
|
304 |
print("Running on", ' '.join(command))
|
305 |
-
process = subprocess.Popen(command, stdout=subprocess.PIPE, bufsize=1
|
306 |
try:
|
307 |
while True:
|
308 |
line = process.stdout.readline()
|
|
|
302 |
if timeout is not None:
|
303 |
command = [f'timeout', f'{timeout}'] + command
|
304 |
print("Running on", ' '.join(command))
|
305 |
+
process = subprocess.Popen(command, stdout=subprocess.PIPE, bufsize=1)
|
306 |
try:
|
307 |
while True:
|
308 |
line = process.stdout.readline()
|