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

Added _quadrant_integral function in CrystalNN #3974

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nisse3000
Copy link
Contributor

Addresses Issue #3973

Copy link
Member

@janosh janosh left a 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
Copy link
Member

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
Copy link
Member

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)
Copy link
Member

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,
Copy link
Member

Choose a reason for hiding this comment

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

and here

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.

2 participants