KeyError : 13

Bug #1779362 reported by Michele Lucente
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Fix Released
Undecided
Unassigned

Bug Description

Hi,
I encountered a possible bug while running MadGraph and MadSpin with the "SM + Heavy N at NLO in QCD” model file (arXiv:1411.7305, arXiv:1602.06957).

Actually I am not aware of its nature, the only error message I have is "KeyError : 13".

I attach the debug.log file, the shell output is too long to be attached here but I can send separately if necessary.

Thank you,
Michele

Revision history for this message
Michele Lucente (mlucente) wrote :
Changed in mg5amcnlo:
status: New → Confirmed
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Here is the patch:

Cheers,

Olivier

=== modified file 'MadSpin/interface_madspin.py'
--- MadSpin/interface_madspin.py 2018-06-22 06:52:02 +0000
+++ MadSpin/interface_madspin.py 2018-07-02 04:11:24 +0000
@@ -984,7 +984,7 @@
                 #misc.sprint(i, particle.pdg, particle.pid)
                 #misc.sprint(self.final_state, evt_decayfile)
                 # check if we need to decay the particle
- if not (particle.pdg in self.final_state or particle.pdg in evt_decayfile):
+ if particle.pdg not in self.final_state or particle.pdg not in evt_decayfile:
                     continue # nothing to do for this particle
                 # check how the decay need to be done
                 nb_decay = len(evt_decayfile[particle.pdg])

Changed in mg5amcnlo:
status: Confirmed → Fix Committed
Changed in mg5amcnlo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.