Forward stdout of spind subprocs to pyzebra app
This commit is contained in:
parent
d312c99f96
commit
5d65afa194
@ -45,7 +45,7 @@ def create():
|
|||||||
temp_hkl_file = os.path.join(temp_dir, "hkl.h5")
|
temp_hkl_file = os.path.join(temp_dir, "hkl.h5")
|
||||||
roi_dict = ast.literal_eval(selection_list.value)
|
roi_dict = ast.literal_eval(selection_list.value)
|
||||||
|
|
||||||
subprocess.run(
|
comp_proc = subprocess.run(
|
||||||
[
|
[
|
||||||
"mpiexec",
|
"mpiexec",
|
||||||
"-n",
|
"-n",
|
||||||
@ -59,11 +59,16 @@ def create():
|
|||||||
temp_hkl_file,
|
temp_hkl_file,
|
||||||
],
|
],
|
||||||
check=True,
|
check=True,
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
stderr=subprocess.STDOUT,
|
||||||
|
text=True,
|
||||||
)
|
)
|
||||||
|
print(" ".join(comp_proc.args))
|
||||||
|
print(comp_proc.stdout)
|
||||||
|
|
||||||
diff_vec = prepare_event_file(temp_event_file, roi_dict, path_prefix_textinput.value)
|
diff_vec = prepare_event_file(temp_event_file, roi_dict, path_prefix_textinput.value)
|
||||||
|
|
||||||
subprocess.run(
|
comp_proc = subprocess.run(
|
||||||
[
|
[
|
||||||
"mpiexec",
|
"mpiexec",
|
||||||
"-n",
|
"-n",
|
||||||
@ -84,7 +89,12 @@ def create():
|
|||||||
str(eval_hkl_tol_spinner.value),
|
str(eval_hkl_tol_spinner.value),
|
||||||
],
|
],
|
||||||
check=True,
|
check=True,
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
stderr=subprocess.STDOUT,
|
||||||
|
text=True,
|
||||||
)
|
)
|
||||||
|
print(" ".join(comp_proc.args))
|
||||||
|
print(comp_proc.stdout)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(temp_dir, "spind.txt")) as f_out:
|
with open(os.path.join(temp_dir, "spind.txt")) as f_out:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user