From f2ce61adaad2aeb0b62582a8b500695b6cc005b7 Mon Sep 17 00:00:00 2001 From: "Michael T. Ringel" <70267658+DocMT@users.noreply.github.com> Date: Mon, 7 Jul 2025 15:37:15 +0200 Subject: [PATCH] See issue #49 --- phreeqpython/solution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phreeqpython/solution.py b/phreeqpython/solution.py index 77babb2..af0b410 100644 --- a/phreeqpython/solution.py +++ b/phreeqpython/solution.py @@ -118,7 +118,7 @@ def total(self, element, units='mmol'): def total_activity(self, element, units='mmol'): """ Returns to total of any given species or element (SLOW!) """ total = 0 - regexp = "(^|[^A-Z])"+element + regexp = element+"([^a-z])" for species, amount in self.species_activities.items(): if re.search(regexp, species): total += convert_units(element, amount, to_units=units)