-
Notifications
You must be signed in to change notification settings - Fork 867
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
Added _quadrant_integral function in CrystalNN #3974
base: master
Are you sure you want to change the base?
Conversation
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.
@nisse3000 this looks good to me! could you fix the 3 failing TestCrystalNN
cases?
@@ -4075,6 +4075,35 @@ def _semicircle_integral(dist_bins, idx): | |||
|
|||
return (area1 - area2) / (0.25 * math.pi * radius**2) | |||
|
|||
@staticmethod |
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.
can you add a link to your issue to the _semicircle_integral
doc string for later reference?
also, would be good to type-hint both the old and your new method
…ith old semicircle function, and type-hinted functions
@@ -1161,7 +1161,7 @@ def _is_in_targets(site, targets): | |||
targets ([Element]) List of elements | |||
|
|||
Returns: | |||
bool: Whether this site contains a certain list of elements | |||
boolean: Whether this site contains a certain list of elements |
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.
this should not be reverted
@@ -1218,7 +1218,7 @@ def __init__( | |||
|
|||
# Update any user preference elemental radii | |||
if el_radius_updates: | |||
self.el_radius |= el_radius_updates | |||
self.el_radius.update(el_radius_updates) |
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.
same here
@@ -1984,7 +1984,7 @@ def get_okeeffe_distance_prediction(el1, el2): | |||
"""Get an estimate of the bond valence parameter (bond length) using | |||
the derived parameters from 'Atoms Sizes and Bond Lengths in Molecules | |||
and Crystals' (O'Keeffe & Brese, 1991). The estimate is based on two | |||
experimental parameters: r and c. The value for r is based off radius, | |||
experimental parameters: r and c. The value for r is based off radius, |
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.
and here
Addresses Issue #3973