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

make error in add_site_family more proper

parent dff6c40b
Branches
Tags
No related merge requests found
......@@ -558,7 +558,7 @@ class TranslationalSymmetry(builder.Symmetry):
det_m = int(round(np.linalg.det(m)))
if det_m == 0:
raise ValueError('Singular symmetry matrix.')
raise RuntimeError('Adding site group failed.')
det_x_inv_m = \
np.array(np.round(det_m * np.linalg.inv(m)), dtype=int)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment