Skip to content

Commit 0e60337

Browse files
tfrederiksenzerothi
authored andcommitted
bug: AB/BA stackings were interchanged
1 parent 25ed6bf commit 0e60337

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
@@ -53,9 +53,9 @@ def bilayer(bond=1.42, bottom_atom=None, top_atom=None, stacking='AB',
5353
if stacking.lower() == 'aa':
5454
top = top.move([0, 0, separation])
5555
elif stacking.lower() == 'ab':
56-
top = top.move([bond, 0, separation])
57-
elif stacking.lower() == 'ba':
5856
top = top.move([-bond, 0, separation])
57+
elif stacking.lower() == 'ba':
58+
top = top.move([bond, 0, separation])
5959

6060
# Compute twist angle
6161
m, n = twist

0 commit comments

Comments
 (0)