This is imported in abipy.core.fields which is automatically imported when abipy is imported and this can raise the error:
FileNotFoundError: [Errno 2] No such file or directory: '..pymatgen/io/vasp/potcar_summary_stats.json.gz'
The absence of this file should not make it impossible to merely import abipy and so the imports of Poscar and Chgcar are relegated to inside the scope where they are actually used.
This is imported in
abipy.core.fields
which is automatically imported whenabipy
is imported and this can raise the error:FileNotFoundError: [Errno 2] No such file or directory: '..pymatgen/io/vasp/potcar_summary_stats.json.gz'
The absence of this file should not make it impossible to merely import
abipy
and so the imports ofPoscar
andChgcar
are relegated to inside the scope where they are actually used.