Skip to content

Commit

Permalink
Fix #218
Browse files Browse the repository at this point in the history
  • Loading branch information
montmorill authored Sep 17, 2023
1 parent 1ef1bf6 commit 2ef4050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chempy/chemistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ def check_all_integral(self, throw=False):
for nam in "reac prod inact_reac inact_prod".split()
]:
for k, v in cont.items():
if v != type(v)(int(v)):
if v != int(v) and v != type(v)(int(v)):
if throw:
raise ValueError(
"Found a non-integer stoichiometric coefficient for %s in %s."
Expand Down

0 comments on commit 2ef4050

Please sign in to comment.