-
Notifications
You must be signed in to change notification settings - Fork 908
Add check_potcar: bool = True
to MaterialsProject2020Compatibility
, MaterialsProjectDFTMixingScheme
and PotcarCorrection
#3143
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 check_potcar: bool = True
to MaterialsProject2020Compatibility
, MaterialsProjectDFTMixingScheme
and PotcarCorrection
#3143
Conversation
You are the hero we don't deserve. |
Closes #2952 as well? |
Pls do not merge this. I have a different fix. |
@arosen93 Re #2952 not 100% sure since there was talk of a |
I just pushed a fix. A global .pmgrc.yaml setting called DISABLE_POTCAR_CHECKS would skip all potcar checking in compatibility. |
I don't think this needs to be closed. Having the option to disable |
Thanks a lot for implementing this! |
I agree that there is still value for a kwarg (although the global setting is nice too). |
@shyuep Forgot to mention this morning I think it'd be better to call the - if SETTINGS.get("DISABLE_POTCAR_CHECKS", False):
+ if not SETTINGS.get("POTCAR_CHECKS"):
return ufloat(0.0, 0.0) |
Sure. Go ahead and make the change, including the new documentation on global config variables that I added this morning. I don't have a strong opinion on this. |
Will do. Just added tests for |
check_potcar: bool = True
to MaterialsProjectDFTMixingScheme
check_potcar: bool = True
to MaterialsProject2020Compatibility
, MaterialsProjectDFTMixingScheme
and PotcarCorrection
@shyuep One more thing (bringing this up just to make sure I'm not missing something). It seems you can't actually set booleans (or any type other than pmg config --add PMG_POTCAR_CHECKS False will be stored as
which is truthy and so the opposite of expected behavior. |
Closes #2499, closes #2952 (and #3142).
07f9730 add check_potcar: bool = True to PotcarCorrection
c008776 add check_potcar: bool = True to MaterialsProject2020Compatibility
19f88c0 add check_potcar: bool = True to MaterialsProjectDFTMixingScheme
0209a5a fix broken test due to modified error msg