From e8d78a8c215fd9bd23ebff3ea5b632ce67d5f26f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 17 Feb 2023 17:06:03 +0000 Subject: [PATCH] style: pre-commit fixes --- pybamm/experiments/experiment.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pybamm/experiments/experiment.py b/pybamm/experiments/experiment.py index d8c281f51b..865af8f321 100644 --- a/pybamm/experiments/experiment.py +++ b/pybamm/experiments/experiment.py @@ -422,15 +422,12 @@ def _detect_mistyped_temperatures(self, cond): raise ValueError(f"Temperature not written correctly on step: '{cond}'") def _read_and_drop_temperature(self, cond): - matches = re.findall(r"at\s-*\d+\.*\d*\s*oC", cond) if len(matches) == 0: - self._detect_mistyped_temperatures(cond) if self.temperature is None: - pybamm.logger.warning( "Temperature not found on step: " f"'{cond}', using temperature " @@ -438,7 +435,6 @@ def _read_and_drop_temperature(self, cond): ) else: - pybamm.logger.warning( f"Temperature not found on step: '{cond}', " f"using global temperature "