Skip to content

Commit 35aae59

Browse files
committed
maint: fix twist index
1 parent a60dc9c commit 35aae59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sisl/geom/bilayer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def bilayer(bond, atom=None, twist=(5, 6), separation=3.35, return_angle=False,
1919
atom : Atom(6)
2020
bilayer atoms
2121
twist : (int, int)
22-
coordinates (n, m) defining the twist angle (theta)
22+
coordinates (m, n) defining the twist angle (theta)
2323
separation : float
2424
distance between the two layers
2525
return_angle : bool
@@ -32,7 +32,7 @@ def bilayer(bond, atom=None, twist=(5, 6), separation=3.35, return_angle=False,
3232

3333
# Compute twist angle
3434
m, n = twist
35-
if m < n:
35+
if m > n:
3636
m, n = n, m
3737

3838
if not (isinstance(n, int) and isinstance(m, int)):

0 commit comments

Comments
 (0)