Skip to content

Fix bug in GPUFOHelasCallWriter format_coupling#822

Merged
valassi merged 4 commits intomadgraph5:masterfrom
valassi:helas
Mar 14, 2024
Merged

Fix bug in GPUFOHelasCallWriter format_coupling#822
valassi merged 4 commits intomadgraph5:masterfrom
valassi:helas

Conversation

@valassi
Copy link
Member

@valassi valassi commented Mar 6, 2024

Hi @oliviermattelaer this is the PR closing #821
(This is also part of the fix for #820 and I will include it in PR #825 I think)
Can you please review?
Thanks
Andrea

valassi added 3 commits March 6, 2024 10:49
…elasCallWriter format_coupling that results in wrong params2order for susy_gg_t1t1
…riter bug madgraph5#821 - no change in the code (this probably affects BSM only?)
git checkout HEAD~ $(git ls-tree --name-only HEAD */CODEGEN*)
@oliviermattelaer
Copy link
Member

Yes this is perfect.
I guess replacing the "==" by "is" would also have done the trick.
But while the above would have avoid to define one variable, this one has the advantages of clarity.

The only thing that one might consider if is the line
###if alias == self.couporderindep: # bug #821! this is incorrectly true when all all dictionaries are empty!
are needed or not, (they certainly do not hurt). But I would advocate to at least modify them to
###if alias == self.couporderindep: # bug #821! this is incorrectly true when both dictionaries are empty!

Copy link
Member

@oliviermattelaer oliviermattelaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above.

I let you decide, in any case this is good to go!

@valassi
Copy link
Member Author

valassi commented Mar 14, 2024

Yes this is perfect. I guess replacing the "==" by "is" would also have done the trick. But while the above would have avoid to define one variable, this one has the advantages of clarity.

Thanks Olivier! Interesting, I had not thought of "is"... But yes, let;s keep the more verbose and more clear version.

The only thing that one might consider if is the line ###if alias == self.couporderindep: # bug #821! this is incorrectly true when all all dictionaries are empty! are needed or not, (they certainly do not hurt). But I would advocate to at least modify them to ###if alias == self.couporderindep: # bug #821! this is incorrectly true when both dictionaries are empty!

Yes I have done this.

@valassi
Copy link
Member Author

valassi commented Mar 14, 2024

see above.

I let you decide, in any case this is good to go!

Ok I will merge this when the CI is done, just to get one out of the way. I will then update the other PRs.

@valassi valassi merged commit 83e3783 into madgraph5:master Mar 14, 2024
valassi added a commit to valassi/madgraph4gpu that referenced this pull request Mar 14, 2024
valassi added a commit to valassi/madgraph4gpu that referenced this pull request Mar 14, 2024
valassi added a commit to valassi/madgraph4gpu that referenced this pull request Sep 3, 2024
…raph5#822 and madgraph5#985) into goodhel

Fix conflicts:
- MG5aMC/mg5amcnlo (keep current version)
- epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.P1 (use upstream/master, will rebuild anyway)
- epochX/cudacpp/gg_tt.mad/SubProcesses/P1_gg_ttx/auto_dsig1.f (keep goodhel comment style)
- epochX/cudacpp/gg_tt.mad/SubProcesses/P1_gg_ttx/matrix1.f (keep goodhel comment style)
- epochX/cudacpp/gg_tt.mad/bin/internal/file_writers.py (keep goodhel version)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug in GPUFOHelasCallWriter format_coupling (wrong params2order for SUSY processes)

2 participants