Skip to content

Commit

Permalink
Removed temperature check
Browse files Browse the repository at this point in the history
Co-authored-by: James Dark <65899899+jhdark@users.noreply.github.com>
  • Loading branch information
RemDelaporteMathurin and jhdark authored Nov 2, 2023
1 parent b13bb3a commit d97cf77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion festim/hydrogen_transport_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))} "
Expand Down

0 comments on commit d97cf77

Please sign in to comment.