Forward stdout of anatric subprocs to pyzebra app

This commit is contained in:
usov_i 2021-04-07 17:01:01 +02:00
parent 5eedd14b3f
commit 83a7d607a5

View File

@ -24,7 +24,15 @@ ALGORITHMS = ["adaptivemaxcog", "adaptivedynamic"]
def anatric(config_file, anatric_path="/afs/psi.ch/project/sinq/rhel7/bin/anatric"):
subprocess.run([anatric_path, config_file], check=True)
comp_proc = subprocess.run(
[anatric_path, config_file],
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True,
)
print(" ".join(comp_proc.args))
print(comp_proc.stdout)
class AnatricConfig: