Closed tfrederiksen closed 5 months ago
Attention: Patch coverage is 96.42857%
with 1 lines
in your changes are missing coverage. Please review.
Project coverage is 86.78%. Comparing base (
71360c5
) to head (ff56451
).:exclamation: Current head ff56451 differs from pull request most recent head ed7d651. Consider uploading reports for the commit ed7d651 to get more accurate results
Files | Patch % | Lines |
---|---|---|
src/sisl/io/vasp/chg.py | 75.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Could we add a link to the documentation or something, so it is clear what the indices of
grid
values refers too?
Where would you add a link? The docstring already describes the index
and spin
arguments, no?
Could we add a link to the documentation or something, so it is clear what the indices of
grid
values refers too?Where would you add a link? The docstring already describes the
index
andspin
arguments, no?
It seems to me that line 35 is then wrong, no?
It seems to me that line 35 is then wrong, no?
Oh, I see. Yes, indeed index=1
would give the spin density and not the down-component as currently stated. By the way, why two keywords index/spin
for the same thing? Wouldn't it not be better to have just one?
It seems to me that line 35 is then wrong, no?
Oh, I see. Yes, indeed
index=1
would give the spin density and not the down-component as currently stated. By the way, why two keywordsindex/spin
for the same thing? Wouldn't it not be better to have just one?
Yes, currently this is a left-over from the siesta
output.
A think we could investigate is whether index
should be used for explicit retrieval (no manipulation), and spin="x"
could be used for explicit spin-configuration extraction, or spin=Spin.X
.
Probably that should also be stream-lined.
Yes, currently this is a left-over from the
siesta
output. A think we could investigate is whetherindex
should be used for explicit retrieval (no manipulation), andspin="x"
could be used for explicit spin-configuration extraction, orspin=Spin.X
.Probably that should also be stream-lined.
I've now updated the docstring and included some examples. I think the stream-lining could be a future PR.
The spin densities were not correctly read from CHGCAR, because after the augmentation occupancies an additional block of values (apparently one per atom) is found on file.
I could not determine what this extra block refers to, as it is not explicitly mentioned in the documentation from the VASP forum, which just mentions:
This PR resolves this issue and adds some further checks.