Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed subprocess output. Now I'll need to figure out how to get libra…
Browse files Browse the repository at this point in the history
…ry paths correct
  • Loading branch information
daminton committed Nov 15, 2022
1 parent 0477c60 commit dcc13e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/swiftest/swiftest/simulation_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ def run(self,**kwargs):

print(f"Running a {self.codename} {self.integrator} run from tstart={self.param['TSTART']} {self.TU_name} to tstop={self.param['TSTOP']} {self.TU_name}")

term = subprocess.run([self.driver_executable, self.integrator, self.param_file], capture_output=True)
with subprocess.Popen([self.driver_executable, self.integrator, self.param_file], stdout=subprocess.PIPE, bufsize=1,universal_newlines=True) as p:
for line in p.stdout:
print(line, end='')
return

def _get_valid_arg_list(self, arg_list: str | List[str] | None = None, valid_var: Dict | None = None):
Expand Down

0 comments on commit dcc13e0

Please sign in to comment.