-
Notifications
You must be signed in to change notification settings - Fork 137
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
PyMatgenStructureFormat with from_system method #626
PyMatgenStructureFormat with from_system method #626
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #626 +/- ##
==========================================
+ Coverage 83.66% 83.67% +0.01%
==========================================
Files 79 80 +1
Lines 6989 7006 +17
==========================================
+ Hits 5847 5862 +15
- Misses 1142 1144 +2 ☔ View full report in Codecov by Sentry. |
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.
could you add a test?
…data into pymatgen_from_system
for more information, see https://pre-commit.ci
…data into pymatgen_from_system
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Now the PyMatgenStructureFormat doesn't support the from_system method.
This PR adds this method, enabling users to convert the pymatgen.core.Structure to the dpdata format, which is convenient when you use pymatgen.transformations to build the atomic model.