From 24264a2f12653f357f8985c10ed0354b6fc875c2 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 28 Jul 2024 23:32:00 -0400 Subject: [PATCH] rm stray assert statement --- CHANGELOG.md | 7 +++++++ src/pyEQL/solution.py | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46838564..a35d2f90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.5] - 2024-07-28 + +### Fixed + +- `Solution`: Hotfix to remove a stray `assert` statement in `_adjust_charge_balance` + that would sometimes cause errors in`pH` charge balancing. + ## [1.1.4] - 2024-07-28 ### Fixed diff --git a/src/pyEQL/solution.py b/src/pyEQL/solution.py index 080cd098..a5c1f68b 100644 --- a/src/pyEQL/solution.py +++ b/src/pyEQL/solution.py @@ -2316,7 +2316,6 @@ def _adjust_charge_balance(self, atol=1e-8) -> None: ) self.set_amount("H+", f"{new_hplus} mol/L") self.set_amount("OH-", f"{K_W/new_hplus} mol/L") - assert np.isclose(self.charge_balance, 0, atol=atol), f"{self.charge_balance}" return z = self.get_property(self._cb_species, "charge")