Skip to content

Commit

Permalink
ignore error
Browse files Browse the repository at this point in the history
  • Loading branch information
cortespea committed Dec 15, 2023
1 parent 32b521b commit 1d6797d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thermosteam/equilibrium/dew_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def x_iter(x, x_gamma, T, P, f_gamma, gamma_args):
try:
x = x_gamma / denominator
except:
raise Exception('liquid phase composition is infeasible')
return x
if (x < 0).any():
raise Exception('liquid phase composition is infeasible')
mask = x > 1e3
Expand Down

0 comments on commit 1d6797d

Please sign in to comment.