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

Updating spglib attr access / improvements for MP building #487

Merged
merged 7 commits into from
Sep 3, 2024

Conversation

esoteric-ephemera
Copy link
Contributor

Smaller changes to robocrys:

  • Changing how spglib dataset attrs are accessed (see this PMG PR)
  • More flexibility with loading mineral fingerprint dataset (cc @tsmathis) to avoid unnecessary reloading during emmet building of robocrys docs

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

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

Copy link
Contributor Author

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

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

@esoteric-ephemera
Copy link
Contributor Author

Should be ready to merge whenever you get a chance!

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.

thanks @esoteric-ephemera! 👍

@janosh janosh merged commit e13cad8 into hackingmaterials:main Sep 3, 2024
@janosh janosh added the dependencies Pull requests that update a dependency file label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants