Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Apr 23, 2024
1 parent da3f3ef commit 71f74d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions chempy/util/parsing.py
Expand Up @@ -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
"""
Expand All @@ -399,7 +399,6 @@ def formula_to_composition(
else:
parts = stoich_tok.split("..")


for idx, stoich in enumerate(parts):
if idx == 0:
m = 1
Expand Down Expand Up @@ -535,7 +534,6 @@ def to_reaction(line, substance_keys, token, Cls, globals_=None, **kwargs):
)



def _formula_to_format(
sub,
sup,
Expand Down

0 comments on commit 71f74d3

Please sign in to comment.