Skip to content

Commit 891e4a7

Browse files
tfrederiksenzerothi
authored andcommitted
enh: make bilayer with identical sheets if only bottom_atom or top_atom is specified
1 parent a82e3e7 commit 891e4a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sisl/geom/bilayer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def bilayer(bond=1.42, bottom_atom=None, top_atom=None, stacking='AB',
3838
----------
3939
.. [1] G. Trambly de Laissardiere, D. Mayou, L. Magaud, "Localization of Dirac Electrons in Rotated Graphene Bilayers", Nano Letts. 10, 804-808 (2010)
4040
"""
41+
if bottom_atom is None:
42+
bottom_atom = top_atom
4143
if bottom_atom is None:
4244
bottom_atom = Atom(Z=6, R=bond * 1.01)
4345
if top_atom is None:

0 commit comments

Comments
 (0)