store_entry() failed when running scan

Asked by Kai-Feng Chen on 2020-04-29

Hi,

I am using Madgraph 2.7.2 to calculate the cross-section of a simple process with a BSM model I defined. I am using the scan feature to scan the mass of my new particles, but after the cross-section has been calculated, it reported an error as follow before moving into a second run:
'''
  === Results Summary for run: run_02 tag: tag_1 ===

     Cross-section : 0.9156 +- 0.001447 pb
     Nb of events : 10000

INFO: No version of lhapdf. Can not run systematics computation
store_events
INFO: Storing parton level results
INFO: End Parton
reweight -from_cards
decay_events -from_cards
INFO: Creating root files
fail to produce Root output [problem with ExRootAnalysis]
INFO: storing files of previous run
INFO: Done
Command "generate_events run_02" interrupted with error:
TypeError : store_entry() got an unexpected keyword argument 'param_card_path'
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/Users/kfchen/Coding/Particle_Physics/madgraph/pp2XX/run_02_tag_1_debug.log'.
Please attach this file to your report.
INFO:
quit
'''

The python error in the log file is:
'''
generate_events run_02
Traceback (most recent call last):
  File "/Users/kfchen/Coding/Particle_Physics/madgraph/madgraph/interface/extended_cmd.py", line 1515, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/Users/kfchen/Coding/Particle_Physics/madgraph/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/Users/kfchen/Coding/Particle_Physics/madgraph/madgraph/interface/madevent_interface.py", line 2469, in do_generate_ev\
ents
    self.run_generate_events(switch_mode, args)
  File "/Users/kfchen/Coding/Particle_Physics/madgraph/madgraph/interface/common_run_interface.py", line 6979, in new_fct
    param_card_iterator.store_entry(next_name, store_for_scan(obj)(), param_card_path=card_path)
TypeError: store_entry() got an unexpected keyword argument 'param_card_path'
'''

I think this store_entry() function should be an internal function, so I wonder whether this is a bug or it is me that make some mistakes. Thanks in advance for your answer!

Sincerely,
Kai-Feng Chen

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
2020-05-01
Last query:
2020-05-01
Last reply:
2020-04-29

Hi,

I do not reproduce the error, and can not see how such error is possible.
My guess is either that your version 2.7.2 is corrupted (or you are not in 2.7.2).

You can check in the file
models/check_param_card.py
around line 984 you should have the line like
    def store_entry(self, run_name, cross, error=None, param_card_path=None):

If you do not have the "param_card_path=" then you are either not in 2.7.2 or your version is corrupted.
IF this is fine on your side, I will need the full debug file in order to try to reproduce it. (in that case, you need to convert this to a bug report in order to attach the file)

Cheers,

Olivier

Kai-Feng Chen (kfchen) said : #2

Hi,

Many thanks for pointing out where that function lies in. Indeed in my check_param_card.py, the function store_entry() does not have that param_card_path argument. I am indeed using 2.7.2 so I think somehow my version is corrupted. Many thanks for helping me resolve this issue!

Sincerely,
Kai-Feng