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

Missing fdf flags error #670

Merged
merged 2 commits into from
Jan 15, 2024
Merged

Missing fdf flags error #670

merged 2 commits into from
Jan 15, 2024

Conversation

zerothi
Copy link
Owner

@zerothi zerothi commented Jan 14, 2024

Allows sisl to issue warnings that hints at what flags/arguments might be necessary for the parent executable (e.g. siesta) to enable certain outputs.

This was inspired by many issues related to missing orbital_transmission output. It is thus non-intrusive, but is a nice to have feature for end-users.

src/sisl/io/siesta/sile.py Fixed Show fixed Hide fixed
src/sisl/io/siesta/sile.py Fixed Show fixed Hide fixed
src/sisl/io/tbtrans/sile.py Fixed Show fixed Hide fixed
src/sisl/io/tbtrans/tbt.py Fixed Show fixed Hide fixed
Copy link

codecov bot commented Jan 14, 2024

Codecov Report

Attention: 34 lines in your changes are missing coverage. Please review.

Comparison is base (3d9e347) 87.63% compared to head (f51b648) 87.65%.

❗ Current head f51b648 differs from pull request most recent head 0e40665. Consider uploading reports for the commit 0e40665 to get more accurate results

Files Patch % Lines
src/sisl/io/_exceptions.py 74.19% 16 Missing ⚠️
src/sisl/io/siesta/fdf.py 87.80% 5 Missing ⚠️
src/sisl/io/sile.py 54.54% 5 Missing ⚠️
src/sisl/io/tbtrans/tbtproj.py 73.33% 4 Missing ⚠️
src/sisl/io/tbtrans/_cdf.py 60.00% 2 Missing ⚠️
src/sisl/io/siesta/sile.py 90.90% 1 Missing ⚠️
src/sisl/io/tbtrans/tbt.py 95.65% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #670      +/-   ##
==========================================
+ Coverage   87.63%   87.65%   +0.01%     
==========================================
  Files         364      365       +1     
  Lines       48996    49054      +58     
==========================================
+ Hits        42940    42997      +57     
- Misses       6056     6057       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/sisl/io/_exceptions.py Fixed Show fixed Hide fixed
src/sisl/io/siesta/fdf.py Fixed Show fixed Hide fixed
This should make debugging errors for users simpler in cases
where there is a keyerror, and they think they can just extract
the orbital-transmissions from calculations which didn't calculate it.

Also fixed projections orbital-transmissions. I think the old one
didn't parse the projections correctly, now it should.

warnings can also be issued in case the users
wants to know what is missing etc.

This is still work in progress, but considering we could
add info stuff for the fdf sile.

Signed-off-by: Nick Papior <[email protected]>
we should add more of these here and there.
fdf content will still only be shown when 'track' is
True

Signed-off-by: Nick Papior <[email protected]>
@zerothi zerothi force-pushed the missing-fdf-flags-error branch from e39f598 to 0e40665 Compare January 15, 2024 07:43
@zerothi zerothi merged commit e12093b into main Jan 15, 2024
3 checks passed
@zerothi zerothi deleted the missing-fdf-flags-error branch January 15, 2024 07:43
@zerothi zerothi changed the title WIP: Missing fdf flags error Missing fdf flags error Jan 15, 2024
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.

Problem in Extracting PDOS from .nc file
1 participant