Set command in launch doesn't work if parameters missing from run_card.dat
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
Fix Released
|
Low
|
Olivier Mattelaer |
Bug Description
Hi Olivier,
I found a problem with the set command inside launch - if the run_card is missing parameters (which often happens if you use e.g. an existing banner to generate your process), then the set command crashes. The actual sequence of calls was:
generate_events
0
set nevents 10000
and then it crashes with the error described below:
set nb_core 1
generate_events
Traceback (most recent call last):
File "/Users/
return self.onecmd_
File "/Users/
return func(arg, **opt)
File "/Users/
self.
File "/Users/
path_msg='enter path', ask_class = AskforEditCard)
File "/Users/
fct=
File "/Users/
result = fct(question)
File "/Users/
return self.cmdloop()
File "/Users/
cmd.
File "/usr/local/
stop = self.onecmd(line)
File "/usr/local/
return func(arg)
File "/Users/
pjoin(
File "/Users/
text += ' %s\t= %s %s' % (self[nline[
KeyError: 'ptl1min'
automatic_
Should be easy enough to fix, but I figured I'll just report it here anyway. :-)
Thanks!
Johan
Related branches
- Olivier Mattelaer: Needs Fixing
-
Diff: 967 lines (+277/-107)23 files modifiedTemplate/Source/dsample.f (+4/-0)
Template/SubProcesses/genps.f (+3/-4)
Template/SubProcesses/myamp.f (+36/-1)
Template/SubProcesses/unwgt.f (+5/-1)
UpdateNotes.txt (+14/-0)
aloha/aloha_object.py (+8/-8)
aloha/aloha_writers.py (+5/-5)
aloha/create_aloha.py (+9/-9)
madgraph/__init__.py (+6/-0)
madgraph/interface/coloring_logging.py (+1/-1)
madgraph/interface/madevent_interface.py (+113/-11)
madgraph/interface/madgraph_interface.py (+17/-8)
madgraph/iolibs/export_v4.py (+2/-2)
madgraph/iolibs/template_files/madevent_makefile_source (+1/-1)
madgraph/iolibs/template_files/madevent_symmetry.f (+0/-2)
madgraph/various/banner.py (+12/-2)
madgraph/various/misc.py (+5/-1)
models/check_param_card.py (+5/-0)
models/import_ufo.py (+7/-4)
tests/acceptance_tests/test_cmd_madevent.py (+2/-1)
tests/input_files/sm_with_custom_propa/propagator.py (+0/-38)
tests/input_files/sm_with_custom_propa/propagators.py (+4/-4)
tests/unit_tests/various/test_aloha.py (+18/-4)
Changed in madgraph5: | |
assignee: | nobody → Olivier Mattelaer (olivier-mattelaer) |
importance: | Undecided → Low |
Changed in madgraph5: | |
status: | Fix Committed → Fix Released |
Hi,
I've finally fix this,
and added the support for the hidden parameter of the run_card (especially lhaid)
Cheers,
Olivier