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
=== modified file 'models/import_ufo.py'
--- models/import_ufo.py 2019-01-30 19:32:17 +0000
+++ models/import_ufo.py 2019-02-04 22:07:47 +0000
@@ -2234,8 +2234,10 @@
2234 else:2234 else:
2235 arg = 'width'2235 arg = 'width'
2236 change_name = [p.name for (p,f) in parameters[1:]]2236 change_name = [p.name for (p,f) in parameters[1:]]
2237 factor_for_name = [f for (p,f) in parameters[1:]]
2237 [p.set(arg, new_name) for p in self['particle_dict'].values() 2238 [p.set(arg, new_name) for p in self['particle_dict'].values()
2238 if p[arg] in change_name]2239 if p[arg] in change_name and
2240 factor_for_name[change_name.index(p[arg])]==1]
2239 2241
2240 def remove_interactions(self, zero_couplings):2242 def remove_interactions(self, zero_couplings):
2241 """ remove the interactions and particle counterterms 2243 """ remove the interactions and particle counterterms

Subscribers

People subscribed via source and target branches

to all changes: