-
Notifications
You must be signed in to change notification settings - Fork 102
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
Fix import error [ijson] #708
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #708 +/- ##
==========================================
- Coverage 76.21% 76.19% -0.03%
==========================================
Files 87 87
Lines 7165 7178 +13
Branches 1057 1057
==========================================
+ Hits 5461 5469 +8
- Misses 1383 1388 +5
Partials 321 321
|
Hi @naik-aakash, thanks for this PR. I think we could handle this differently. Ideally, the warning would be raised if you are actually trying to use the The typical way of doing this is using the atomate2/src/atomate2/lobster/schemas.py Lines 523 to 525 in 19849ff
My suggestion would be:
try:
import ijson
except ImportError:
ijson = None
|
Thanks @utf, for the suggestion, I will make the required changes. |
Hi @utf , I have now made the changes and this PR could be merged if you think this is fine. |
Looks great, thank you! |
Closes #702
Changes
Below is the snapshot of warning printed when MPVaspLobsterMaker is disabled.