We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d92ab5 commit 60ebf13Copy full SHA for 60ebf13
pydmd/bopdmd.py
@@ -303,7 +303,7 @@ def _push_eigenvalues(self, eigenvalues):
303
new_eigs[ind_0] = eigenvalues[ind_0].real
304
unassigned_inds.remove(ind_0)
305
# Assign complex conjugate pairs until all eigenvalues are paired.
306
- while len(unassigned_inds) != 0:
+ while unassigned_inds:
307
# Randomly grab the next unassigned eigenvalue.
308
ind_1 = unassigned_inds.pop()
309
eig_1 = eigenvalues[ind_1]
0 commit comments