From 71f74d34cefc1c518f225b124cf51f22d9d28335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ingvar=20Dahlgren?= Date: Tue, 23 Apr 2024 11:19:23 +0200 Subject: [PATCH] tidy up --- chempy/util/parsing.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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,