Skip to content
New issue

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

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

Already on GitHub? # to your account

Change default VoronoiNN cutoff #1289

Merged
merged 1 commit into from
Sep 26, 2018
Merged

Conversation

utf
Copy link
Member

@utf utf commented Sep 26, 2018

Summary

Change default cutoff of VoronoiNN from 10.0 to 13.0. This fixes #1281 for all 85,000 materials currently in the materials project database.

I have also changed the way the max_cutoff is calculated. Previously, the max cutoff was incorrect for cells with angles not equal to 90 deg (e.g. for the example in #1281). The max cutoff is now set to the largest of the 4 cell diagonals. I'm not confident that my implementation is the cleanest way to do this but it works.

Lastly, I moved the self._extract_cell_info() call to within the try-catch block, as I found that just increasing the cutoff fixed this error in most cases (maybe all cases). Just to be sure, I altered the error handling to make sure the right error message is thrown.

@mkhorton mkhorton merged commit a4be7a7 into materialsproject:master Sep 26, 2018
@mkhorton
Copy link
Member

Excellent, thanks @utf !

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VoronoiNN causes Python to crash
2 participants