Skip to content

Commit

Permalink
Merge branch 'zigzag_heteroribbon'
Browse files Browse the repository at this point in the history
  • Loading branch information
zerothi committed Nov 22, 2023
2 parents 0c80505 + 9d9fc1d commit 07721fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ we hit release version 1.0.0.
### Fixed
- enabled slicing in matrix assignments, #650
- changed `Shape.volume()` to `Shape.volume`
- growth direction for zigzag heteroribbons

### Changed
- `vacuum` is now an optional parameter for all ribbon structures
Expand Down
4 changes: 1 addition & 3 deletions src/sisl/geom/nanoribbon.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,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")

Expand Down

0 comments on commit 07721fc

Please sign in to comment.