From 62aaa67c37b0f48eb4b7789a4b080a971fddc204 Mon Sep 17 00:00:00 2001 From: Zach Marshall <ZLMarshall@lbl.gov> Date: Mon, 17 Feb 2025 00:56:13 +0100 Subject: [PATCH] Improving default names for tgz files in MadGraphControl It's more clear for users if things that are .tar.gz files have extensions that look like .tar.gz, instead of no extension at all. Implementing that in the two places where we weren't as clear as we should have been. --- Generators/MadGraphControl/python/MadGraphUtils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Generators/MadGraphControl/python/MadGraphUtils.py b/Generators/MadGraphControl/python/MadGraphUtils.py index 9850bb0c5e9d..93ced6611bc8 100755 --- a/Generators/MadGraphControl/python/MadGraphUtils.py +++ b/Generators/MadGraphControl/python/MadGraphUtils.py @@ -1151,7 +1151,7 @@ def madspin_on_lhe(input_LHE,madspin_card,runArgs=None,keep_original=False): if runArgs is None: raise RuntimeError('Must provide runArgs to madspin_on_lhe') - outputDS = runArgs.outputTXTFile if hasattr(runArgs,'outputTXTFile') else 'tmp_LHE_events' + outputDS = runArgs.outputTXTFile if hasattr(runArgs,'outputTXTFile') else 'tmp_LHE_events.tar.gz' mglog.info('Moving file over to '+outputDS.split('.tar.gz')[0]+'.events') shutil.move(os.getcwd()+'/events.lhe',outputDS.split('.tar.gz')[0]+'.events') @@ -1417,7 +1417,7 @@ def arrange_output(process_dir=MADGRAPH_GRIDPACK_LOCATION,lhe_version=None,saveP if hasattr(runArgs,'outputTXTFile'): outputDS = runArgs.outputTXTFile else: - outputDS = 'tmp_LHE_events' + outputDS = 'tmp_LHE_events.tar.gz' mglog.info('Moving file over to '+outputDS.split('.tar.gz')[0]+'.events') -- GitLab