LO pythia8_card is not accepted when we supply pythia8 card directly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
Fix Released
|
Undecided
|
Valentin Hirschi |
Bug Description
Dear MG5 team,
We experienced a similar problem in LO case comparing to NLO case: https:/
version: 2.5.4
process: p p > t t~
Here is the explanation of bug:
After generating process, at following screen:
/------
| 1. param : param_card.dat |
| 2. run : run_card.dat |
| 3. pythia8 : pythia8_card.dat |
| 4. madanalysis5_parton : madanalysis5_
| 5. madanalysis5_hadron : madanalysis5_
\------
If we give new pythia card by
./pythia8_
Then mg5 crashes with following error in script mode
Command "generate_events run_01" interrupted with error:
KeyError : 'pythia8'
Please report this bug on https:/
More information is found in 'ME5_debug'.
Please attach this file to your report.
Also, give error in interactive mode
'pythia8'
not valid argument. Valid argument are file path or value in (0,done,
please retry
The crash appears at line 5779 of common_
if card_name != 'banner':
card_name.
'PY8': '/home/
MG5 accept new pythia8 card and copy it into [PROCESS_
if card_name != 'banner':
if card_key == 'pythia8':
However, there is still another problem. If we modify number for reserved entry in the pythia8_card, for example:
This does not reflect in PY8Card.cmd during run. i.e. [PROCESS_
Strangely, non-reserved command updated well, for example:
Is reflected well in both cards.
We also tested this changes using set pythia8_card command, and the change of parameter works well in this case.
Could you check this bug if you have time?
Best wishes,
Sung Hak Lim
Amit Chakraborty
Changed in mg5amcnlo: | |
status: | Fix Committed → Fix Released |
Hi,
Thanks for reporting this.
I have fix the name issue. (I have changed the keys such that it follows the same convention as the other card)
For the second, I will let Valentin handle this problem.
Cheers,
Olivier
> On 4 Aug 2017, at 06:01, Sung Hak Lim <email address hidden> wrote: /bugs.launchpad .net/mg5amcnlo/ +bug/1708113 ------- ------- ------- ------- ------- ------- ------- -----\ parton_ card.dat | hadron_ card.dat | ------- ------- ------- ------- ------- ------- ------- -----/ /bugs.launchpad .net/mg5amcnlo 1,param, 2,run,3, pythia8) . run_interface. py card_name. split(' _',1)[0] ]) <- this point card(self. paths[card_ name.split( '_',1)[ 0]]) split(' _',1)[0] is 'pythia8' in this case, however, self.paths starlight/ mgoutput/ pp2zhjj_ new/Cards/ pythia8_ card.dat' PATH]/Cards/ pythia8_ card.dat when we make following hacky split(' _',1)[0] card_key] ) card_key] ) PATH]/Events/ run_01/ PY8_paralleliza tion/split_ */PY8Card. cmd LHAPDF6: NNPDF30_ nnlo_as_ 0118
>
> Public bug reported:
>
> Dear MG5 team,
>
> We experienced a similar problem in LO case comparing to NLO case:
> https:/
>
> version: 2.5.4
> process: p p > t t~
>
> Here is the explanation of bug:
>
> After generating process, at following screen:
>
> /------
> | 1. param : param_card.dat |
> | 2. run : run_card.dat |
> | 3. pythia8 : pythia8_card.dat |
> | 4. madanalysis5_parton : madanalysis5_
> | 5. madanalysis5_hadron : madanalysis5_
> \------
>
> If we give new pythia card by
> ./pythia8_card.dat
>
> Then mg5 crashes with following error in script mode
>
> Command "generate_events run_01" interrupted with error:
> KeyError : 'pythia8'
> Please report this bug on https:/
> More information is found in 'ME5_debug'.
> Please attach this file to your report.
>
> Also, give error in interactive mode
>
> 'pythia8'
> not valid argument. Valid argument are file path or value in (0,done,
> please retry
>
> The crash appears at line 5779 of common_
>
> if card_name != 'banner':
> logger.info('copy %s as %s' % (path, card_name))
> files.cp(path, self.paths[
> self.reload_
>
> card_name.
> contain key for pythia8 card as PY8:
>
> 'PY8': '/home/
>
> MG5 accept new pythia8 card and copy it into
> [PROCESS_
> change:
>
> if card_name != 'banner':
> logger.info('copy %s as %s' % (path, card_name))
> card_key = card_name.
> if card_key == 'pythia8':
> card_key = 'PY8'
> files.cp(path, self.paths[
> self.reload_card( self.paths[
>
> However, there is still another problem. If we modify number for
> reserved entry in the pythia8_card, for example:
>
> JetMatching:nJetMax = 2
>
> This does not reflect in PY8Card.cmd during run. i.e.
> [PROCESS_
> contains default parameter.
>
> Strangely, non-reserved command updated well, for example:
>
> PDF:pSet=
>
> Is reflected well in both cards.
>
> We also tested this changes using set pythia8_card command, and the
> change of parameter works well in this case.
>
> Could you check this bug if you have time?
>
> Best wishes,...