small fix
This commit is contained in:
+2
-2
@@ -52,10 +52,10 @@ def _run_mini_batch(
|
||||
with TempFileManager() as tfm:
|
||||
tfm.dump_input(to_process)
|
||||
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)
|
||||
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()
|
||||
if return_geometry:
|
||||
return data['df'], data['geometry']
|
||||
|
||||
Reference in New Issue
Block a user