Skip to content

Commit

Permalink
if multiplier is 1 set it to None
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Sep 7, 2024
1 parent 6d17141 commit 64cd210
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 87 deletions.
2 changes: 2 additions & 0 deletions pyenzyme/sbml/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def _parse_unit(unit: sbml.UnitDefinition):

if math.isnan(multiplier):
multiplier = None
elif multiplier == 1.0:
multiplier = None

enzml_unit.add_to_base_units(
kind=kind,
Expand Down
Loading

0 comments on commit 64cd210

Please sign in to comment.