Skip to content

Commit aafec4d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ab3d2dc commit aafec4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/structuretoolkit/build/surface.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,12 @@ def _hnf_and_U(P):
281281
and U is unimodular such that P = U·H.
282282
"""
283283
from sympy import Matrix
284+
284285
P_sym = Matrix(P.tolist())
285-
286+
286287
# The functional interface works for all recent SymPy releases.
287288
from sympy.matrices.normalforms import hermite_normal_form
289+
288290
H_sym = hermite_normal_form(P_sym)
289291
H = np.array(H_sym, dtype=int)
290292
U = np.asarray(H_sym.inv() @ P_sym, dtype=int)

0 commit comments

Comments
 (0)