-
Notifications
You must be signed in to change notification settings - Fork 83
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
PDOSWorkChain - align to fermi energy #716
Comments
Hi @t-reents, thanks for the report. There indeed seems to be a problem here as the inputs = {
'dos': {
'parameters': Dict(dict={
...
'align_to_fermi': True
}
}
} That being said, I am not sure what the actual solution should be. It seems the top-level |
Hi @sphuber thanks for your quick reply. Sure this way it will run, was just a little bit confused whether I am overlooking something or if it's indeed ignored. Thank you! |
Hi @sphuber, I tried the "solution" and ran into another issue. The keyword aiida-quantumespresso/aiida_quantumespresso/workflows/pdos.py Lines 450 to 476 in c49def7
In line 457-458 and 471-472, the keywords for the energy range are accessed on a different level. I think the right structure for QE is the left hand side, so I think it should be like this: dos_parameters['DOS']['Emin'] = dos_parameters['DOS']['Emin'] + self.ctx.nscf_fermi |
Yeah, that seems like a mistake and your correction is right. |
Thanks for the report @t-reents! This does seem to be the result of a bit of rushed refactoring when we were planning to quickly use this work chain for a project. I think the purpose of the I'm not sure if the However, the mixing of the top-level To summarize, the usage should be:
We can then also add validation that not both |
Fixed in #764 |
In the
PDOSWorkChain
there is the argumentalign_to_fermi
to align the specified energy range of the DOS/PDOS around the fermi-energy (ifTrue
).aiida-quantumespresso/aiida_quantumespresso/workflows/pdos.py
Lines 220 to 230 in c49def7
When I look at my results this shift is not performed. Moreover, I am confused, when I look at the code, how this would work in general (maybe I am overlooking something).
aiida-quantumespresso/aiida_quantumespresso/workflows/pdos.py
Lines 450 to 476 in c49def7
As shown above, it is checked whether
align_to_fermi
is specified in the parameters-dict. I was wondering whether the user has to addalign_to_fermi
to the parameters-dict in the inputs for the DOS/PDOS, when creating the builder? If not, why does the code not check ifself.inputs.align_to_fermi
is True or not at this point?So basically I am wondering when the input
align_to_fermi
is actually used?The text was updated successfully, but these errors were encountered: