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

Add support for single archive files and pymatgen parsers #35

Merged
merged 23 commits into from
Oct 3, 2023

Conversation

ml-evs
Copy link
Collaborator

@ml-evs ml-evs commented Sep 15, 2023

This PR adds support for data provided in the form of a single compressed file (e.g., not a tar archive), such as json.bz2.

It also enables parsing of such data with Structure.from_dict() and ComputedStructureEntry.from_dict(). This required a bit of refactoring to enable, as it breaks some assumptions from the simpler one-to-one file -> structure parsers.

This code will work but may need some more features but has a few bits to discuss, e.g.,

  • what to use for IDs
  • better testing

Closes #33
Closes #30
Closes #37
Closes #38

@ml-evs
Copy link
Collaborator Author

ml-evs commented Sep 27, 2023

Just added the extra property def stuff we discussed to this, also had to introduce the concept of property aliases so that user's aren't confined to serving the internal fields with the names used by any given package. Will make a follow-up PR with some testing for the first entry in each example db

@ml-evs ml-evs requested a review from eimrek September 27, 2023 15:30
@ml-evs ml-evs force-pushed the ml-evs/support-pymatgen branch 2 times, most recently from 4f428f6 to df6c9a1 Compare October 2, 2023 12:47
@ml-evs ml-evs force-pushed the ml-evs/support-pymatgen branch 2 times, most recently from 50ccda0 to 0bff866 Compare October 2, 2023 13:27
Copy link
Member

@eimrek eimrek left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks a lot!

@eimrek eimrek merged commit 3b261d8 into main Oct 3, 2023
1 check passed
@eimrek eimrek deleted the ml-evs/support-pymatgen branch October 3, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants