Skip to content

Commit

Permalink
fix minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Jan 19, 2024
1 parent d04e6f7 commit d9c33e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biosteam/units/phase_equilibrium.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def _run_decoupled_Kgamma(self, P=None): # Psuedo-equilibrium
K = gamma_x / gamma_y
good = (x != 0) | (y != 0)
if not good.all():
index = np.where(good)
index, = np.where(good)
IDs = [IDs[i] for i in index]
gamma_y = [gamma_y[i] for i in index]
self._set_arrays(IDs, gamma_y=gamma_y, K=K)
Expand Down

0 comments on commit d9c33e3

Please sign in to comment.