diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ce2126f15..0e38840866 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ we hit release version 1.0.0. ## [0.14.4] - YYYY-MM-DD +### Fixed +- growth direction for zigzag heteroribbons ## [0.14.3] - 2023-11-07 diff --git a/src/sisl/geom/nanoribbon.py b/src/sisl/geom/nanoribbon.py index 1543a386e9..78036a97c6 100644 --- a/src/sisl/geom/nanoribbon.py +++ b/src/sisl/geom/nanoribbon.py @@ -237,10 +237,8 @@ class _heteroribbon_section(CompositeGeometrySection): invert_first: bool = field(default=False, repr=False) def __post_init__(self): - if self.kind == "armchair": + if self.kind in ("armchair", "zigzag"): self.long_ax, self.trans_ax = 0, 1 - elif self.kind == "zigzag": - self.long_ax, self.trans_ax = 1, 0 else: raise ValueError("Unknown kind={kind}, must be one of zigzag or armchair")