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

fixed 5.2 reading of charges #857

Merged
merged 3 commits into from
Nov 6, 2024
Merged

fixed 5.2 reading of charges #857

merged 3 commits into from
Nov 6, 2024

Conversation

zerothi
Copy link
Owner

@zerothi zerothi commented Nov 6, 2024

Now the stdout sile for siesta tries
to automatically determine the used charge
reading algorithm, one can still forcefully
request the old-style. But if the version
is 5.2 or later, it will default
to the new scheme.

This commit also fixes the issue of the changed
column names.

The stdout sile now also contains the version
specification.

Fixes #856

Now the stdout sile for siesta tries
to automatically determine the used charge
reading algorithm, one can still forcefully
request the old-style. But if the version
is 5.2 or later, it will default
to the new scheme.

This commit also fixes the issue of the changed
column names.

The stdout sile now also contains the version
specification.

Fixes #856

Signed-off-by: Nick Papior <[email protected]>
src/sisl/io/siesta/stdout.py Fixed Show fixed Hide fixed
src/sisl/io/siesta/stdout.py Fixed Show fixed Hide fixed
src/sisl/io/siesta/stdout.py Fixed Show fixed Hide fixed
version, *spec = opt.split("-", maxsplit=1)
try:
version = tuple(int(v) for v in version.split("."))
except BaseException:

Check notice

Code scanning / CodeQL

Except block handles 'BaseException' Note

Except block directly handles BaseException.
"Mulliken Atomic Populations",
"Mulliken Net Atomic Populations",
]
except BaseException:

Check notice

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.
"Mulliken Atomic Populations",
"Mulliken Net Atomic Populations",
]
except BaseException:

Check notice

Code scanning / CodeQL

Except block handles 'BaseException' Note

Except block directly handles BaseException.
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

Attention: Patch coverage is 80.76923% with 5 lines in your changes missing coverage. Please review.

Project coverage is 86.98%. Comparing base (6ef4400) to head (906eb7e).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/sisl/io/siesta/stdout.py 80.76% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #857      +/-   ##
==========================================
- Coverage   86.98%   86.98%   -0.01%     
==========================================
  Files         403      403              
  Lines       52531    52552      +21     
==========================================
+ Hits        45696    45712      +16     
- Misses       6835     6840       +5     

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

@zerothi zerothi merged commit 309d393 into main Nov 6, 2024
16 of 17 checks passed
@zerothi zerothi deleted the 856-charges branch November 6, 2024 10:05
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.

Siesta 5.2 introduces new charge schemes
1 participant