You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Andrew-S-Rosen
changed the title
List index out of range when using bader_analysis_from_path
File grepping with bader_analysis_from_path is questionable
Oct 1, 2024
Andrew-S-Rosen
changed the title
File grepping with bader_analysis_from_path is questionable
File grepping with bader_analysis_from_path is error-prone
Oct 1, 2024
Andrew-S-Rosen
changed the title
File grepping with bader_analysis_from_path is error-prone
Glob logic with bader_analysis_from_path is error-prone
Oct 1, 2024
Python version
3.11.9
Pymatgen version
2024.9.17.1
Operating system version
Linux
Current behavior
When calling
bader_analysis_from_path
, I get an indexing error due to poor glob logic.Expected Behavior
No indexing error
Minimal example
The following files are taken directly from MP.
Traceback:
This is because of the following code, which is looking for the
.json.gz
files instead of the newly written out files:pymatgen/src/pymatgen/command_line/bader_caller.py
Lines 515 to 527 in fa62ff4
Relevant files to reproduce this bug
CHGCAR.json.gz
AECCAR0.json.gz
AECCAR2.json.gz
CC @aryannsaha
The text was updated successfully, but these errors were encountered: