Skip to content
Snippets Groups Projects
Commit ece0bc68 authored by Zach Marshall's avatar Zach Marshall
Browse files

Making sure MGC cleans up copies of events

We were missing the removal of a temporary copy of the LHE file, which
can be quite large under certain circumstances.
parent 03b920e6
No related branches found
No related tags found
3 merge requests!66713update MadGraph version,!51680Add functionality to MultiBjetFilter,!42973Making sure MGC cleans up copies of events
......@@ -1500,6 +1500,8 @@ def arrange_output(process_dir=MADGRAPH_GRIDPACK_LOCATION,lhe_version=None,saveP
shutil.copyfileobj(mod_output2, final_file)
final_file.close()
shutil.copy(os.getcwd()+'/events.lhe.copy',os.getcwd()+'/events.lhe')
# Clean up after ourselves
os.remove(os.getcwd()+'/events.lhe.copy')
mod_output2.close()
# Actually move over the dataset
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment