Skip to content

Commit a82e3e7

Browse files
tfrederiksenzerothi
authored andcommitted
enh: use origo as center of bilayer geometry
1 parent b28e05a commit a82e3e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sisl/geom/bilayer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def bilayer(bond=1.42, bottom_atom=None, top_atom=None, stacking='AB',
104104
if rep > 1:
105105
# Remove atoms outside cell
106106
cell_box = Cuboid(bilayer.cell)
107-
cell_box.set_origo([-0.0001] * 3)
107+
cell_box.set_center([-0.0001] * 3)
108108
inside_idx = cell_box.within_index(bilayer.xyz)
109109
bilayer = bilayer.sub(inside_idx)
110110

0 commit comments

Comments
 (0)