Skip to content
Snippets Groups Projects
Commit 4e135ac7 authored by Michael Wimmer's avatar Michael Wimmer Committed by Christoph Groth
Browse files

make order of modes agree with the doc string (lowest modes first)

parent 2177ac0a
No related branches found
No related tags found
No related merge requests found
......@@ -722,8 +722,8 @@ def modes(h_onslice, h_hop, tol=1e6):
# expected (lowest subband first, etc.)
prop_ev = ev[propselect]
rsort = np.argsort((1j * np.log(prop_ev[rprop])).real)
lsort = np.argsort((-1j * np.log(prop_ev[lprop])).real)
rsort = np.argsort((-1j * np.log(prop_ev[rprop])).real)
lsort = np.argsort((1j * np.log(prop_ev[lprop])).real)
vecs = np.c_[prop_vecs[n:, lprop][:, lsort],
prop_vecs[n:, rprop][:, rsort],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment