Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: fixed #488 with the cell order #489

Merged
merged 1 commit into from
Sep 25, 2022
Merged

bug: fixed #488 with the cell order #489

merged 1 commit into from
Sep 25, 2022

Conversation

zerothi
Copy link
Owner

@zerothi zerothi commented Sep 23, 2022

Also added tests. @tfrederiksen

@codecov
Copy link

codecov bot commented Sep 24, 2022

Codecov Report

Merging #489 (f5eb860) into main (623ed2c) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head f5eb860 differs from pull request most recent head 481162d. Consider uploading reports for the commit 481162d to get more accurate results

@@            Coverage Diff             @@
##             main     #489      +/-   ##
==========================================
+ Coverage   86.93%   86.94%   +0.01%     
==========================================
  Files         346      346              
  Lines       44376    44403      +27     
==========================================
+ Hits        38578    38606      +28     
+ Misses       5798     5797       -1     
Impacted Files Coverage Δ
sisl/geom/bilayer.py 98.66% <100.00%> (+1.33%) ⬆️
sisl/geom/flat.py 100.00% <100.00%> (ø)
sisl/geom/tests/test_geom.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

return dot3(self.cell[0, :], cross3(self.cell[1, :], self.cell[2, :]))


def is_positive(geometry):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this function could be named is_righthanded to be more explicit about what is tested?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done! Thanks!

Also added tests after suggestion by @tfrederiksen.
@zerothi zerothi merged commit f5582c8 into main Sep 25, 2022
@zerothi zerothi deleted the 488-right-hand-cell branch September 25, 2022 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reorder honeycomb lattice vectors?
2 participants