Skip to content

Commit

Permalink
temperature cannot be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelyndunnell committed Feb 26, 2025
1 parent c69e971 commit 134a8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/festim/exports/surface_temperature.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def temperature_field(self):
@temperature_field.setter
def temperature_field(self, value):
# check that temperature field is float, int, fem.Constant, fem.Function, or fem.Expression
if not isinstance(value, (fem.Constant, fem.Function, fem.Expression, int, float, str)):
if not isinstance(value, (fem.Constant, fem.Function, fem.Expression, int, float)):
raise TypeError("field must be of type float, int, fem.Constant, fem.Function, or fem.Expression")

self._temperature_field = value
Expand Down

0 comments on commit 134a8ff

Please sign in to comment.