sparc.download_data module

Download the pseudopotential and other related files after sparc-x-api is installed

Run:

python -m sparc.download_data

sparc.download_data.checksum_all(psp_dir=PosixPath('/home/runner/work/SPARC-X-API/SPARC-X-API/sparc/psp'), extension='*.psp8')[source]

Checksum all the files under the psp_dir to make sure the psp8 files are the same as intended

Parameters:
  • psp_dir (str or PosixPath) – Directory for the psp files

  • extension (str) – Search pattern for the psp files, either ‘.psp’, ‘.psp8’ or ‘.pot’

Returns:

Checksum for all the files concatenated

Return type:

str

sparc.download_data.download_psp(sparc_tag='b702c1061400a2d23c0e223e32182609d7958156', psp_dir=PosixPath('/home/runner/work/SPARC-X-API/SPARC-X-API/sparc/psp'))[source]

Download the external PSPs into the sparc/psp folder

Parameters:
  • sparc_tag (str) – Commit hash or git tag for the psp files

  • psp_dir (str or PosixPath) – Directory to download the psp files

sparc.download_data.is_psp_download_complete(psp_dir=PosixPath('/home/runner/work/SPARC-X-API/SPARC-X-API/sparc/psp'))[source]