Skip to content

Commit 60ebf13

Browse files
sichinagafandreuz
andauthored
Update pydmd/bopdmd.py
Co-authored-by: Francesco Andreuzzi <[email protected]>
1 parent 5d92ab5 commit 60ebf13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydmd/bopdmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def _push_eigenvalues(self, eigenvalues):
303303
new_eigs[ind_0] = eigenvalues[ind_0].real
304304
unassigned_inds.remove(ind_0)
305305
# Assign complex conjugate pairs until all eigenvalues are paired.
306-
while len(unassigned_inds) != 0:
306+
while unassigned_inds:
307307
# Randomly grab the next unassigned eigenvalue.
308308
ind_1 = unassigned_inds.pop()
309309
eig_1 = eigenvalues[ind_1]

0 commit comments

Comments
 (0)