small fix

This commit is contained in:
Jan Kieseler
2024-12-13 11:53:11 +01:00
parent 62bf0837b5
commit e195f8fe1a
+2 -2
View File
@@ -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']