-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fix is_isomorphous #279
Fix is_isomorphous #279
Conversation
for more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #279 +/- ##
==========================================
- Coverage 91.22% 88.98% -2.25%
==========================================
Files 37 40 +3
Lines 2531 2841 +310
==========================================
+ Hits 2309 2528 +219
- Misses 222 313 +91
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug is fixed.
I'd like to see a (regression) test for this method added before merging, to ensure it stays fixed.
as requested, @tjlane |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Logic looks solid. A few comments in the interest of people who might read this code in the future.
Also: do we need a test for the spacegroup comparison bit?
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@tjlane , space groups are tested in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love it
thanks for tackling this one @kmdalton ! |
As discussed in #277 , DataSet.is_isomorphous currently does not do what is indicated in its docstring. This change makes the behavior in line with the expectation that
cell_threshold
is a percent difference.