-
Notifications
You must be signed in to change notification settings - Fork 27
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
Updating spglib attr access / improvements for MP building #487
Conversation
robocrys/condense/component.py
Outdated
@@ -183,7 +183,10 @@ def get_sym_inequiv_components( | |||
components = deepcopy(components) | |||
|
|||
sym_inequiv_components = {} | |||
equivalent_atoms = spg_analyzer.get_symmetry_dataset()["equivalent_atoms"] | |||
if hasattr(symm_dset := spg_analyzer.get_symmetry_dataset(),"equivalent_atoms"): |
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.
alternatively, you could pin spglib>=2.5
in setup.py
and only support the attr version
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.
No particular preference from my side, maybe it's better to be more flexible wrt spglib version? Happy to go with your rec
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.
I would also lean towards Janosh's rec on this on one
Should be ready to merge whenever you get a chance! |
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.
thanks @esoteric-ephemera! 👍
Smaller changes to robocrys: