Skip to content

Commit e8d78a8

Browse files
style: pre-commit fixes
1 parent 3b7a572 commit e8d78a8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pybamm/experiments/experiment.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,23 +422,19 @@ def _detect_mistyped_temperatures(self, cond):
422422
raise ValueError(f"Temperature not written correctly on step: '{cond}'")
423423

424424
def _read_and_drop_temperature(self, cond):
425-
426425
matches = re.findall(r"at\s-*\d+\.*\d*\s*oC", cond)
427426

428427
if len(matches) == 0:
429-
430428
self._detect_mistyped_temperatures(cond)
431429

432430
if self.temperature is None:
433-
434431
pybamm.logger.warning(
435432
"Temperature not found on step: "
436433
f"'{cond}', using temperature "
437434
"from parameter values."
438435
)
439436

440437
else:
441-
442438
pybamm.logger.warning(
443439
f"Temperature not found on step: '{cond}', "
444440
f"using global temperature "

0 commit comments

Comments
 (0)