diff --git a/chempy/chemistry.py b/chempy/chemistry.py index f20f75bb..0543f0e2 100644 --- a/chempy/chemistry.py +++ b/chempy/chemistry.py @@ -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."