diff --git a/chempy/util/parsing.py b/chempy/util/parsing.py index 12ac5a57..fe5e7fda 100644 --- a/chempy/util/parsing.py +++ b/chempy/util/parsing.py @@ -378,7 +378,7 @@ def formula_to_composition( True >>> formula_to_composition('.NHO-(aq)') == {0: -1, 1: 1, 7: 1, 8: 1} True - >>> formula_to_composition('Na2CO3*7H2O') == {11: 2, 6: 1, 8: 10, 1: 14} + >>> formula_to_composition('Na2CO3..7H2O') == {11: 2, 6: 1, 8: 10, 1: 14} True """ @@ -399,7 +399,6 @@ def formula_to_composition( else: parts = stoich_tok.split("..") - for idx, stoich in enumerate(parts): if idx == 0: m = 1 @@ -535,7 +534,6 @@ def to_reaction(line, substance_keys, token, Cls, globals_=None, **kwargs): ) - def _formula_to_format( sub, sup,