Skip to content

Commit

Permalink
Merge pull request #757 from roiser/fixcouplingordering
Browse files Browse the repository at this point in the history
WIP: if needed fix the order of couplings
  • Loading branch information
oliviermattelaer authored Aug 30, 2023
2 parents 6a845b0 + 4f3cdd8 commit 0aba0c6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,12 @@ def write_aloha_routines(self):
logger.info('Created file %s in directory %s' \
% (os.path.split(model_h_file)[-1], os.path.split(model_h_file)[0] ) )

def prepare_couplings(self, wanted_couplings = []):
super().prepare_couplings(wanted_couplings)
# the two lines below fix #748, i.e. they re-order the dictionary keys following the order in wanted_couplings
ordered_dict = [(k, self.coups_dep[k]) for k in wanted_couplings]
self.coups_dep = dict((x, y) for x, y in ordered_dict)

#------------------------------------------------------------------------------------

import madgraph.iolibs.files as files
Expand Down

0 comments on commit 0aba0c6

Please sign in to comment.