-
Notifications
You must be signed in to change notification settings - Fork 82
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 tot magnetization base #972
Fix tot magnetization base #972
Conversation
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.
Thanks @AndresOrtegaGuerrero . Added suggestion that I think should fix the failing tests
# if tot_magnetization in overrides , remove starting_magnetization from parameters | ||
if overrides['pw']['parameters']['SYSTEM'].get('tot_magnetization') is not None: | ||
parameters['SYSTEM'].pop('starting_magnetization', None) |
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.
You need to guard against SYSTEM
not yet being defined.
# if tot_magnetization in overrides , remove starting_magnetization from parameters | |
if overrides['pw']['parameters']['SYSTEM'].get('tot_magnetization') is not None: | |
parameters['SYSTEM'].pop('starting_magnetization', None) | |
# if tot_magnetization in overrides , remove starting_magnetization from parameters | |
if parameters.get('SYSTEM', {}).get('tot_magnetization') is not None: | |
parameters.setdefault('SYSTEM', {}).pop('starting_magnetization', None) |
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.
@sphuber Thank you so much for the help! , I will also continue checking the PdosWorkChain and BandsWorkChain, since somehow it produces a problem of not having a fermi_energy
The failure of the docs is unrelated to this PR. I will have to look into this separately to fix it. once that is done, I will rebase and we can merge this |
@AndresOrtegaGuerrero I fixed the docs. Can you please update your branch? Normally I can do it, but for some reason it is not letting me this time |
@sphuber Thank you ! I just updated, maybe because i am doing the PR from the fork at nanotech-empa ? |
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.
Thanks @AndresOrtegaGuerrero
If tot_magnetization is used in overrided , this logic should remove starting_magnetization