Events not zipped even with .gz
Bug #1697656 reported by
Stefan von Buddenbrock
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Dear MG5_aMC@NLO team
I believe I have found a bug in the new version (2.5.5).
When I make events using the normal procedure (bin/generate_
This happens when using an LCG environment on LX Plus, but not when I run on my MacBook Pro.
I have attached a sample p p > j j log file for inspection.
Cheers
Stefan
Changed in mg5amcnlo: | |
status: | New → Fix Committed |
Changed in mg5amcnlo: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Stefan,
Thanks for pointing this to us. I have found a linux machine on which I reproduce the problem.
and here is the associate fix:
=== modified file 'madgraph/ various/ lhe_parser. py' various/ lhe_parser. py 2017-05-03 09:21:01 +0000 various/ lhe_parser. py 2017-06-15 12:06:35 +0000
--- madgraph/
+++ madgraph/
@@ -174,6 +174,10 @@
def __init__(self, path, mode='r', *args, **opt):
"""open file and read the banner [if in read mode]"""
+ if path.endswith( '.gz') and mode == 'w' and\
self. parsing = True # check if/when we need to parse the event.
self. eventgroup = False
+ isinstance(self, EventFileNoGzip):
+ path = path[:-3]
+
try:
Thanks,
Olivier