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

ProjwfcCalculation Doesnt doesnt parse properly pdos_tot (Bug) #1041

Open
AndresOrtegaGuerrero opened this issue Aug 26, 2024 · 1 comment
Open

Comments

@AndresOrtegaGuerrero
Copy link
Collaborator

When using a spin polarized calculations , the Calculations doesn't parse pdos_tot file appropriately
instead it saves in 'y_array_0' the dos_up, and it doesn't parse the dos_down column

@t-reents
Copy link

Thanks @AndresOrtegaGuerrero for reporting. Indeed, we somehow only parse the first column:

try:
pdostot_filename = fnmatch.filter(out_filenames, '*pdos_tot*')[0]
with self.retrieved.base.repository.open(pdostot_filename, 'r') as pdostot_file:
# Columns: Energy(eV), Ldos, Pdos
pdostot_array = np.atleast_2d(np.genfromtxt(pdostot_file))
energy = pdostot_array[:, 0]
dos = pdostot_array[:, 1]

Intuitively, I would also think that we'd need some spin-dependent logic here, since I don't see a reason why we should only parse DOS up (maybe it was sufficient at that time as the DOS is calculated via dos.x in the WorkChain anyway, just speculating). Nonetheless, pinging @mbercx to see whether there is any historical context.

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

No branches or pull requests

2 participants