File tree Expand file tree Collapse file tree 1 file changed +3
-21
lines changed
Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Original file line number Diff line number Diff line change 44
55import numpy as np
66import re
7- import pybamm
7+
88
99examples = """
1010
@@ -417,30 +417,12 @@ def convert_electric(self, electric):
417417 )
418418 )
419419
420- def _detect_mistyped_temperatures (self , cond ):
421- if "oC" in cond :
422- raise ValueError (f"Temperature not written correctly on step: '{ cond } '" )
423-
424420 def _read_and_drop_temperature (self , cond ):
425421 matches = re .findall (r"at\s-*\d+\.*\d*\s*oC" , cond )
426422
427423 if len (matches ) == 0 :
428- self ._detect_mistyped_temperatures (cond )
429-
430- if self .temperature is None :
431- pybamm .logger .warning (
432- "Temperature not found on step: "
433- f"'{ cond } ', using temperature "
434- "from parameter values."
435- )
436-
437- else :
438- pybamm .logger .warning (
439- f"Temperature not found on step: '{ cond } ', "
440- f"using global temperature "
441- f"({ self .temperature } oC) instead"
442- )
443-
424+ if "oC" in cond :
425+ raise ValueError (f"Temperature not written correctly on step: '{ cond } '" )
444426 temperature = self .temperature
445427 reduced_cond = cond
446428
You can’t perform that action at this time.
0 commit comments