Skip to content
Snippets Groups Projects
Commit 3a0b1f82 authored by Anton Akhmerov's avatar Anton Akhmerov Committed by Christoph Groth
Browse files

make rmt compatible with changes coming in numpy 1.8

parent 614a4397
No related branches found
No related tags found
No related merge requests found
......@@ -224,7 +224,7 @@ def circular(n, sym='A', charge=None):
s, h = qr(h)
if p(sym) == -1 and not np.allclose(np.diag(h, 1)[::2], 0, atol=1e-8):
raise RuntimeError('QR decomposition symmetry failure.')
h = np.diag(h)
h = np.diag(h).copy()
h /= np.abs(h)
s *= h
......
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