Forward stdout of anatric subprocs to pyzebra app
This commit is contained in:
parent
5eedd14b3f
commit
83a7d607a5
@ -24,7 +24,15 @@ ALGORITHMS = ["adaptivemaxcog", "adaptivedynamic"]
|
|||||||
|
|
||||||
|
|
||||||
def anatric(config_file, anatric_path="/afs/psi.ch/project/sinq/rhel7/bin/anatric"):
|
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:
|
class AnatricConfig:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user