Skip to content

Commit

Permalink
remove trigonometric functions of constants
Browse files Browse the repository at this point in the history
  • Loading branch information
pfebrer committed Oct 31, 2023
1 parent f7e6adb commit 7ffc10e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sisl/geom/flat.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def _minimal_op(shells):
# the next horizontal lines.

# Displacement from the end of one horizontal pair to the beggining of the next
branch_displ_x = bond * np.cos(np.radians(60))
branch_displ_y = bond * np.sin(np.radians(60))
branch_displ_x = bond * 0.5 # cos(60) = 0.5
branch_displ_y = bond * 3 ** 0.5 / 2 # sin(60) = sqrt(3)/2

Check warning on line 106 in src/sisl/geom/flat.py

View check run for this annotation

Codecov / codecov/patch

src/sisl/geom/flat.py#L105-L106

Added lines #L105 - L106 were not covered by tests

# Iterate over shells. We also keep track of the atom types, in case
# we have two different atoms in the honeycomb lattice.
Expand Down

0 comments on commit 7ffc10e

Please sign in to comment.