Skip to content

Commit

Permalink
reverses the recipe actions for reverse templates
Browse files Browse the repository at this point in the history
  • Loading branch information
mazeau committed Nov 23, 2019
1 parent bfffc5b commit c25a809
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rmgpy/data/kinetics/family.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ def get_reverse(self):
other.add_action(['GAIN_PAIR', action[1], action[2]])
elif action[0] == 'GAIN_PAIR':
other.add_action(['LOSE_PAIR', action[1], action[2]])
other.actions = reversed(other.actions) # Play the reverse recipe in the reverse order
return other

def _apply(self, struct, forward, unique):
Expand Down

0 comments on commit c25a809

Please sign in to comment.