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

Added to / from PMG methods, with pymatgen as an optional import #67

Merged
merged 3 commits into from
Sep 26, 2019

Conversation

stevetorr
Copy link
Contributor

@stevetorr stevetorr commented Sep 24, 2019

Talked to @dmclark17 about how to handle optional import statements for different libraries. The solution that is apparently the consensus on StackOverflow is to do as I have done below. Would be happy for 2 cents on if this makes sense.

@codecov-io
Copy link

codecov-io commented Sep 24, 2019

Codecov Report

Merging #67 into master will increase coverage by 0.29%.
The diff coverage is 87.8%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #67      +/-   ##
==========================================
+ Coverage   46.96%   47.26%   +0.29%     
==========================================
  Files          37       37              
  Lines        5636     5677      +41     
==========================================
+ Hits         2647     2683      +36     
- Misses       2989     2994       +5
Impacted Files Coverage Δ
flare/struc.py 97% <86.95%> (-3%) ⬇️
tests/test_struc.py 97.64% <88.88%> (-2.36%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bf9bf70...a6e2f11. Read the comment docs.

Copy link
Collaborator

@jonpvandermause jonpvandermause left a comment

Choose a reason for hiding this comment

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

Looks good!

@jonpvandermause jonpvandermause merged commit 245d5a9 into master Sep 26, 2019
@stevetorr stevetorr deleted the from_to_pmg branch September 26, 2019 14:50
@dmclark17
Copy link
Contributor

Since we added pymatgen to the requirements.txt, we could probably just make it mandatory?

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.

4 participants