Closed snark00 closed 5 months ago
Thanks for sharing your observations.
I took a closer look at the issues you mentioned with the graphs. The problem originated from the way we normalized the data. Specifically, there was a division by zero error that led to inflated values on the graph. We addressed this in our initial fix, but it seems the issue was not completely resolved until the most recent update.
I replicated your plots using pyprocar==6.1.7 and pyprocar==6.1.9, and noticed the discrepancies with the projections as well. It appears that my results look quite different from yours. To ensure we're aligned, could you confirm if you used any additional or different calculations from the files you provided?
For your reference, here are the plots from pyprocar==6.1.7 and pyprocar==6.1.9:
pyprocar==6.1.7
pyprocar==6.1.9
Below are the plots for pyprocar==6.1.10
.
Here is the plain
mode version:
Here is the stack_orbital
mode version
The new version 6.1.10 has been pushed to PyPI, and it should be available on Anaconda within the next day or so.
Please let me know if the new version resolves the issue or if there's anything else you'd like to discuss.
Best Regards, Logan Lang
Good morning,
I should have been more careful - the files I provided were from HgTe with a Hg vacancy, while my plots were for a pristine surface. Regardless, I'm glad you were able to reproduce the issue.
Version 6.1.10 has indeed resolved the issue. As a user for the past few months, it's great to see the package being so well maintained. Thank you!
Issue
Using
dosplot()
in version 6.1.7 withmode="stack_orbitals"
results in a DOS profile that sums to the total:After upgrading to version 6.1.9, the DOS profile occasionally does not sum to the total:
This appears to be a severe undercounting of the p-orbitals, which are mostly associated the tellurium in this structure:
atoms=[a for a in range(48, 96)]
Reproducing
vasp_out1 = "./my/data/here/"
figure = plt.figure(dpi=300) ax1 = figure.gca()
pro.dosplot(code="vasp", dirname=vasp_out1, dos_limit=[-80, 80], mode="stack_orbitals",
spins=[0],
plt.show()