Skip to content

Commit

Permalink
simple fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrederiksen committed Nov 4, 2023
1 parent d689f2a commit 6046472
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/sisl/geom/nanoribbon.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def nanoribbon(
kind : {'armchair', 'zigzag', 'chiral'}
type of ribbon
index :
chiral index (n, m), only processed for chiral types
chiral index (n, m), only used if `kind=chiral`
See Also
--------
Expand Down Expand Up @@ -71,7 +71,7 @@ def nanoribbon(
else:
ribbon = ribbon.repeat(n, 1)

elif kind in ["zigzag", "chiral"]:
elif kind in ("zigzag", "chiral"):
# Construct zigzag GNR
ribbon = ribbon.rotate(90, [0, 0, -1], what="abc+xyz")
if m == 1:
Expand Down Expand Up @@ -137,10 +137,10 @@ def graphene_nanoribbon(
C-C bond length
atoms : Atom, optional
atom (or atoms) in the honeycomb lattice. Defaults to ``Atom(6)``
kind : {'armchair', 'zigzag', 'chiral}
kind : {'armchair', 'zigzag', 'chiral'}
type of ribbon
index :
chiral index (n, m), only processed for chiral types
chiral index (n, m), only used if `kind=chiral`
See Also
--------
Expand Down Expand Up @@ -213,9 +213,9 @@ def cgnr(n: int, m: int, width: int, bond: float = 1.42, atoms=None) -> Geometry
Parameters
----------
n :
first chiral index
first chirality index (zigzag segments)
m :
second chiral index
second chirality index (armchair segments)
width :
number of atoms in the transverse direction
bond :
Expand Down

0 comments on commit 6046472

Please sign in to comment.