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

Create molecule schema #54

Merged
merged 3 commits into from
Jan 24, 2022
Merged

Create molecule schema #54

merged 3 commits into from
Jan 24, 2022

Conversation

Andrew-S-Rosen
Copy link
Member

I needed to make a pymatgen Molecule schema for my own project and figured it should just be integrated in Atomate2 directly. Is something like this of interest? I'm not very familiar with Atomate1, so I'm not sure if there is a Molecule schema there I should copy, but I just copied the format of the Structure schema and adjusted it slightly.

I'll add tests and complete this shortly. Apologies about my other open PR. Even though it's super simple, time got the best of me... will wrap that up soon too.

Create a schema for molecules. Also add tests for structure and molecule schemas
@Andrew-S-Rosen Andrew-S-Rosen changed the title [WIP] Create molecule schema Create molecule schema Jan 17, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jan 17, 2022

Codecov Report

Merging #54 (6dd49af) into main (6f3ae23) will increase coverage by 0.36%.
The diff coverage is 94.44%.

@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
+ Coverage   70.02%   70.38%   +0.36%     
==========================================
  Files          44       45       +1     
  Lines        3770     3806      +36     
  Branches      563      569       +6     
==========================================
+ Hits         2640     2679      +39     
+ Misses        983      980       -3     
  Partials      147      147              
Impacted Files Coverage Δ
src/atomate2/common/schemas/molecule.py 94.44% <94.44%> (ø)
src/atomate2/common/schemas/structure.py 100.00% <0.00%> (+13.88%) ⬆️

@Andrew-S-Rosen
Copy link
Member Author

@utf, this should be good to go, assuming this is how you'd want the code organized.

@utf
Copy link
Member

utf commented Jan 24, 2022

Looks great. Thanks very much.

@utf utf merged commit ca82cb4 into materialsproject:main Jan 24, 2022
@Andrew-S-Rosen Andrew-S-Rosen deleted the rosen-schemas branch January 24, 2022 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants