Skip to content

Commit

Permalink
fix non-numba error
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Jan 18, 2024
1 parent 2d10e6c commit 4e6914d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thermosteam/equilibrium/lle.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def pseudo_equilibrium_outer_loop(Kgammayphi, z, T, n, f_gamma, gamma_args, inne
K = Kgammay[:n]
try:
phi = phase_fraction(z, K, phi)
except ZeroDivisionError:
except (ZeroDivisionError, FloatingPointError):
raise NoEquilibrium
if np.isnan(phi): raise NoEquilibrium
if phi > 1: phi = 1 - 1e-16
Expand Down

0 comments on commit 4e6914d

Please sign in to comment.