Skip to content

Commit

Permalink
refactor rate assignment logic for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Marketa Opichalova committed Mar 11, 2024
1 parent a9cc4b9 commit dffaea0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions eBCSgen/Parsing/ParseBCSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,17 +610,15 @@ def rule(self, matches):
reversible = False
if arrow == "<=>":
reversible = True
rate1 = Rate(rate1) if rate1 else None
rate2 = Rate(rate2) if rate2 else rate1
return reversible, Rule(
agents,
mid,
compartments,
complexes,
pairs,
rate1,
Rate(rate1) if rate1 else None,
label,
), rate2
), Rate(rate2) if rate2 else None

def rules(self, matches):
rules = []
Expand Down

0 comments on commit dffaea0

Please sign in to comment.