Merge lp:~maddevelopers/mg5amcnlo/2.6.6_bug_1813292 into lp:~mg5core1/mg5amcnlo/2.6.6

Proposed by Olivier Mattelaer
Status: Merged
Merged at revision: 284
Proposed branch: lp:~maddevelopers/mg5amcnlo/2.6.6_bug_1813292
Merge into: lp:~mg5core1/mg5amcnlo/2.6.6
Diff against target: 15 lines (+3/-1)
1 file modified
models/import_ufo.py (+3/-1)
To merge this branch: bzr merge lp:~maddevelopers/mg5amcnlo/2.6.6_bug_1813292
Reviewer Review Type Date Requested Status
Valentin Hirschi Approve
Review via email: mp+362704@code.launchpad.net

Commit message

To post a comment you must log in.
Revision history for this message
Valentin Hirschi (valentin-hirschi) wrote :

I can't test it now (but if I recall correctly you told me that you did test it) and this simple change seems to indeed do the job as far as I can see.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'models/import_ufo.py'
2--- models/import_ufo.py 2019-01-30 19:32:17 +0000
3+++ models/import_ufo.py 2019-02-04 22:07:47 +0000
4@@ -2234,8 +2234,10 @@
5 else:
6 arg = 'width'
7 change_name = [p.name for (p,f) in parameters[1:]]
8+ factor_for_name = [f for (p,f) in parameters[1:]]
9 [p.set(arg, new_name) for p in self['particle_dict'].values()
10- if p[arg] in change_name]
11+ if p[arg] in change_name and
12+ factor_for_name[change_name.index(p[arg])]==1]
13
14 def remove_interactions(self, zero_couplings):
15 """ remove the interactions and particle counterterms

Subscribers

People subscribed via source and target branches

to all changes: