MadSpin import not working for model from path
Bug #1599014 reported by
Zachary Marshall
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Thank you for setting up the import of models from a path in MG5_aMC! When we run with MadSpin, I see that in MadSpin/decay.py around L1640 the model is imported like:
When the model is imported from a path or has some path included in it, this statement seems to fail. In my particular case, the model name is MadGraphModels/
and it seems to work. Is that a patch that makes sense and could be applied?
Thanks,
Zach
Changed in mg5amcnlo: | |
status: | New → Fix Committed |
Changed in mg5amcnlo: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Zach,
model.path is not always defined and is not good enough in general.
The recomend way is to use: cmd(‘import model %s’ % model.get( ‘modelpath+ restriction’ ))
> cmd.exec_
which not only returns the path but also the restriction applied to the model (if any)
I will push this patch directly in our development version but can you confirm if this is indeed solves your problem?
Thanks,
Olivier
> On Jul 5, 2016, at 06:18, Zachary Marshall <email address hidden> wrote: cmd('import model %s' % model.get('name')) some_model_ name, and the model's name is reported as just cmd('import model %s' % model.path) /bugs.launchpad .net/bugs/ 1599014 cmd('import model %s' % model.get('name')) some_model_ name, and the model's name is cmd('import model %s' % model.path) /bugs.launchpad .net/mg5amcnlo/ +bug/1599014/ +subscriptions
>
> Public bug reported:
>
> Thank you for setting up the import of models from a path in MG5_aMC!
> When we run with MadSpin, I see that in MadSpin/decay.py around L1640
> the model is imported like:
>
> cmd.exec_
>
> When the model is imported from a path or has some path included in it,
> this statement seems to fail. In my particular case, the model name is
> MadGraphModels/
> some_model_name . I can get this to work by changing that to:
>
> cmd.exec_
>
> and it seems to work. Is that a patch that makes sense and could be
> applied?
>
> Thanks,
> Zach
>
> ** Affects: mg5amcnlo
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https:/
>
> Title:
> MadSpin import not working for model from path
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> Thank you for setting up the import of models from a path in MG5_aMC!
> When we run with MadSpin, I see that in MadSpin/decay.py around L1640
> the model is imported like:
>
> cmd.exec_
>
> When the model is imported from a path or has some path included in
> it, this statement seems to fail. In my particular case, the model
> name is MadGraphModels/
> reported as just some_model_name . I can get this to work by changing
> that to:
>
> cmd.exec_
>
> and it seems to work. Is that a patch that makes sense and could be
> applied?
>
> Thanks,
> Zach
>
> To manage notifications about this bug go to:
> https:/