From d97cf7765bcdcf8aeb96c170b01436460e317724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Delaporte-Mathurin?= <40028739+RemDelaporteMathurin@users.noreply.github.com> Date: Thu, 2 Nov 2023 14:22:05 -0400 Subject: [PATCH] Removed temperature check Co-authored-by: James Dark <65899899+jhdark@users.noreply.github.com> --- festim/hydrogen_transport_problem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/festim/hydrogen_transport_problem.py b/festim/hydrogen_transport_problem.py index 60ff98186..666f1a18e 100644 --- a/festim/hydrogen_transport_problem.py +++ b/festim/hydrogen_transport_problem.py @@ -195,7 +195,7 @@ def define_temperature(self): # if temperature is callable, process accordingly elif callable(self.temperature): arguments = self.temperature.__code__.co_varnames - if "t" in arguments and "x" not in arguments and "T" not in arguments: + if "t" in arguments and "x" not in arguments: if not isinstance(self.temperature(t=float(self.t)), (float, int)): raise ValueError( f"self.temperature should return a float or an int, not {type(self.temperature(t=float(self.t)))} "