compute_widths only looks at models in main madgraph directory

Bug #1457580 reported by Alex Sherman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Fix Released
Undecided
Unassigned

Bug Description

When attempting to use compute_widths, even if a model import has been specified to another directory, there will be an error thrown if a copy of that model is not in the main madgraph/models directory. Debug file is attached, I had created a copy of a UFO model that I knew was NOT in my MadGraph/MG5_aMC_v2_2_3/models/ directory.

Also, once you put a copy in the MG5_aMC_v2_2_3/ directory, it will still save the param_card.dat to the originally specified model import location, not the one in the MG5_aMC_v2_2_3/ directory, even though it requires this one to function.

Revision history for this message
Alex Sherman (adsherma) wrote :
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1457580] [NEW] compute_widths only looks at models in main madgraph directory

Thanks a lot,

Here is the fix:

=== modified file 'madgraph/interface/madgraph_interface.py'
--- madgraph/interface/madgraph_interface.py 2015-05-22 16:18:38 +0000
+++ madgraph/interface/madgraph_interface.py 2015-05-22 18:06:25 +0000
@@ -6412,7 +6412,7 @@
             logger.warning(warning_text)

         if not model:
- modelname = self._curr_model['name']
+ modelname = self._curr_model.get('modelpath')
             with misc.MuteLogger(['madgraph'], ['INFO']):
                 model = import_ufo.import_model(model name, decay=True)

Cheers,

Olivier

On 21 May 2015, at 12:09, Alex Sherman <email address hidden> wrote:

> Public bug reported:
>
> When attempting to use compute_widths, even if a model import has been
> specified to another directory, there will be an error thrown if a copy
> of that model is not in the main madgraph/models directory. Debug file
> is attached, I had created a copy of a UFO model that I knew was NOT in
> my MadGraph/MG5_aMC_v2_2_3/models/ directory.
>
> Also, once you put a copy in the MG5_aMC_v2_2_3/ directory, it will
> still save the param_card.dat to the originally specified model import
> location, not the one in the MG5_aMC_v2_2_3/ directory, even though it
> requires this one to function.
>
> ** Affects: mg5amcnlo
> Importance: Undecided
> Status: New
>
> ** Attachment added: "MG5_debug"
> https://bugs.launchpad.net/bugs/1457580/+attachment/4401868/+files/MG5_debug
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1457580
>
> Title:
> compute_widths only looks at models in main madgraph directory
>
> Status in MadGraph5_aMC@NLO Generator:
> New
>
> Bug description:
> When attempting to use compute_widths, even if a model import has been
> specified to another directory, there will be an error thrown if a
> copy of that model is not in the main madgraph/models directory. Debug
> file is attached, I had created a copy of a UFO model that I knew was
> NOT in my MadGraph/MG5_aMC_v2_2_3/models/ directory.
>
> Also, once you put a copy in the MG5_aMC_v2_2_3/ directory, it will
> still save the param_card.dat to the originally specified model import
> location, not the one in the MG5_aMC_v2_2_3/ directory, even though it
> requires this one to function.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1457580/+subscriptions

Changed in mg5amcnlo:
status: New → 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

Bug attachments

Remote bug watches

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