-
Notifications
You must be signed in to change notification settings - Fork 31
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
Shallow defect analysis #50
Conversation
Shallow defect analysis
And my comments from previous PR:
bulk_outcar_path, multiple = _get_output_files_and_check_if_multiple(
"OUTCAR", dp.defect_entry.calculation_metadata["bulk_path"]
)
bulk_outcar_phs = get_outcar(bulk_outcar_path)
bulk_vr_phs = get_vasprun(bulk_vr_path, parse_projected_eigen=True)
defect_vr_phs = get_vasprun(defect_vr_path, parse_projected_eigen=True)
|
Does this code also allow IPR analysis @adair-nicolson? (Can't remember what 'P ratio' is here) |
So P-ratio is a similar-ish metric. P-ratio (participation ratio) is the ratio of the projected orbitals of the neighbouring atoms to the defects site to the sum of all atoms. So for a delocalised states/band states you would expect a small value. But there was a little bug, which is the last thing I need to fix today, related to setting the number of nearest neighbour. I'll also add an explainer to the tips and tricks section on PHS analysis. |
@kavanase I'm going to set |
Ok! Which part is it breaking in the analysis tests? (Shouldn't affect other properties being tested?) |
Have got round the failed tests by settings the code to skip the trying to do the shallow defect analysis if you don't have the rights files/
so should be able to re-enable the shallow defect analysis as the default behaviour |
# Conflicts: # doped/analysis.py
Looking nice @adair-nicolson! When this gets to the near-completion stage, could you add a short section to the advanced analysis tutorial showing it in action? Thanks! |
…ct` `INFO` messages
…ith dynamic handling and warning if needs be
…ct_path` so later loading of data works even if notebook moved
Btw @adair-nicolson, I updated |
Ok once that |
@kavanase I'm still pretty sure it's due to the difference in significant figures. Although it's only the third decimal place, that's for each atom, so if you add up all the project eigenvalues for a single band that can make up a sizeable difference, especially in a very large supercell. If you replace the project eigenvalues loaded with |
Ok! Can you update the reference JSONs for this then? |
…and avoid logging info messages
…as speed mostly the same as PROCAR parsing now, and more accurate/easier
This reverts commit eaa8478.
…count for small numerical differences
@adair-nicolson ok so I dug in and saw the significant figures issue you were talking about (I didn't really get the screenshot at first as it seemed it was just replacing the So I added some updates there, just to make the vasprun parsing as efficient as possible (now about 30% quicker overall), and to update the default behaviour to parse the projected eigenvalue data from the vaspruns preferentially rather than |
All tests passing, merging now. Thanks for all your work with this @adair-nicolson! 💪 |
Quoting @adair-nicolson's initial overview: