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

Updated the protocols to accomodate the suggestions proposed on issue #959 in aiidalab_qe. #1052

Merged
merged 5 commits into from
Jan 31, 2025

Conversation

Minotakm
Copy link
Collaborator

@Minotakm Minotakm commented Dec 17, 2024

Hey all,

There is an ongoing discussion regarding why the DOS sometimes misses peaks at low energies and why PDOS and DOS results can differ. The discussion concluded with the following changes:

  • Decreasing the DeltaE value to 0.01 in the DOS protocol.
  • Changing the occupations setting from tetrahedra to tetrahedra_opt.

Following that I did some tests, where here we can see that the low peak now is tracked.
image

Additionally, the DOS calculated with dos.x, projwfc.x, and the sum of the projections from pDOS are now consistent.
image

Furthermore, I updated the PdosWorkChain to check for the tetrahedra parameters.

Closes aiidalab/aiidalab-qe#959

@AndresOrtegaGuerrero
Copy link
Collaborator

Could you test with a magnetic system as well ?

@Minotakm
Copy link
Collaborator Author

Sure, I can. Will do, and update thanks for the suggestion.

@AndresOrtegaGuerrero
Copy link
Collaborator

Could you test with a magnetic system as well ?

Thank you , I suggested this since i think the projwfc.x calculation doest parse properly total PDOS for magnetic systems

@Minotakm
Copy link
Collaborator Author

Minotakm commented Jan 23, 2025

Just a small update. You are right (@AndresOrtegaGuerrero ) projwfc.x calculation parses DOS for spin-up as total dos. I will look into that. For spin up it seems that is fine.
image

@AndresOrtegaGuerrero
Copy link
Collaborator

thank you @Minotakm could you maybe update the PR to merged it

@AndresOrtegaGuerrero
Copy link
Collaborator

@Minotakm could you update the tests with the changes ,

E       -      DeltaE: 0.02
E       +      DeltaE: 0.01

@Minotakm
Copy link
Collaborator Author

@AndresOrtegaGuerrero should be fine now.

@AndresOrtegaGuerrero
Copy link
Collaborator

This ones too

E       -        occupations: tetrahedra
E       +        occupations: tetrahedra_opt

@AndresOrtegaGuerrero
Copy link
Collaborator

AndresOrtegaGuerrero commented Jan 30, 2025

Here as well ,
[in workflows/protocols
/test_pdos.py](

def test_electronic_type(get_pdos_generator_inputs):
)

    for namespace, occupations in zip((builder.scf, builder.nscf), ('fixed', 'tetrahedra')):
        parameters = namespace['pw']['parameters'].get_dict()
        assert parameters['SYSTEM']['occupations'] == occupations
        assert 'degauss' not in parameters['SYSTEM']
        assert 'smearing' not in parameters['SYSTEM']

@Minotakm
Copy link
Collaborator Author

Should be there.

Copy link
Collaborator

@AndresOrtegaGuerrero AndresOrtegaGuerrero left a comment

Choose a reason for hiding this comment

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

LGTM! thank you @Minotakm

@edan-bainglass edan-bainglass merged commit c5617c0 into aiidateam:main Jan 31, 2025
7 checks passed
@mbercx
Copy link
Member

mbercx commented Feb 1, 2025

@edan-bainglass if you needed this change urgently, please let me know and/or merge the commit with a more sensible commit message next time. This is not explaining anything, and the "issue" that is referred to is actually an unrelated PR. We try hard to keep a good commit history around here.

@Minotakm can you write a commit message on what problem the changes in this PR try to solve, and what was changed and why? Then I can amend c5617c0.

@edan-bainglass
Copy link
Member

edan-bainglass commented Feb 1, 2025

Apologies @mbercx 🙏 Great if we can document these commit rules. The "unrelated" PR is referenced by @Minotakm in the description of this PR, which I used for the commit message. Anyhow, as you suggest, I'll disregard your vacation status next time and bother you with work 👍 Let me practice now by asking you to make a release, so we can include the change in the app. That'd be bonza 💪 Cheers mate 🦘

@Minotakm Minotakm deleted the Fix-pDOS-issue-959 branch February 3, 2025 09:49
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.

Check why PDOS sometimes skips the first semicore, and why PDOS and DOS are different
5 participants