Skip to content

Commit d67e1f5

Browse files
committed
Fix typo in periodicity check.
1 parent ade6f59 commit d67e1f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

z2pack/hm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(
6464
if check_periodic:
6565
k_values = itertools.product([0, 1], repeat=dim)
6666
k_first = next(k_values)
67-
ham_first = self._hamilton()
67+
ham_first = self._hamilton(k_first)
6868
for k in k_values:
6969
if not np.allclose(ham_first, self._hamilton(k)):
7070
raise ValueError(

0 commit comments

Comments
 (0)