small fix
This commit is contained in:
+2
-2
@@ -52,10 +52,10 @@ def _run_mini_batch(
|
|||||||
with TempFileManager() as tfm:
|
with TempFileManager() as tfm:
|
||||||
tfm.dump_input(to_process)
|
tfm.dump_input(to_process)
|
||||||
if silent:
|
if silent:
|
||||||
subprocess.run(["python", "G4Calo_exec.py", tfm.input_file, tfm.output_file],
|
subprocess.run(["G4Calo_exec.py", tfm.input_file, tfm.output_file],
|
||||||
stdout=subprocess.DEVNULL)#, stderr=subprocess.DEVNULL)
|
stdout=subprocess.DEVNULL)#, stderr=subprocess.DEVNULL)
|
||||||
else:
|
else:
|
||||||
subprocess.run(["python", "G4Calo_exec.py", tfm.input_file, tfm.output_file])
|
subprocess.run(["G4Calo_exec.py", tfm.input_file, tfm.output_file])
|
||||||
data = tfm.read_output()
|
data = tfm.read_output()
|
||||||
if return_geometry:
|
if return_geometry:
|
||||||
return data['df'], data['geometry']
|
return data['df'], data['geometry']
|
||||||
|
|||||||
Reference in New Issue
Block a user