Skip to content

Commit

Permalink
fixed type in ValueError when T to low.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloasdata committed Jan 2, 2025
1 parent c80ff0b commit fd02d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thermo/flash/flash_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def flash(self, zs=None, T=None, P=None, VF=None, SF=None, V=None, H=None,
T = float(T)
flash_specs['T'] = T
if T < self.T_MIN_FLASH_ANY:
raise ValueError(f"Specified temperature ({T} K) is below the minimum temeprature ({self.T_MIN_FLASH_ANY} K) "
raise ValueError(f"Specified temperature ({T} K) is below the minimum temperature ({self.T_MIN_FLASH_ANY} K) "
"supported by any of the provided phases")
# if T <= 0.0:
# raise ValueError("Specified temperature (%s K) is unphysical" %(T,))
Expand Down

0 comments on commit fd02d04

Please sign in to comment.