CrySPR
Maintainers: Wei Nong [email: nw2y47@outlook.com] ; Ruiming Zhu [email: raymond_zhurm@outlook.com]
CrySPR /ˈkrɪspɚ/ is a Python interface for crystal structure pre-relaxation and prediction using machine-learning interatomic potentials (ML-IAPs). Features include:
- Implement structure generation from the input info (e.g., formula, Z, space group, etc.) via
pyxtaland local structure optimization/relaxation throughasecalculator using ML-IAPs; - Implement global search task for crystal structure prediction using 1) random search (done), and 2) particle swarm optimization (PSO) for a given reduced formula (in dev ...);
- More in development
The original old repo Fast-Universal-CSP-Platform @RaymondZhurm
Python dependencies
python >= 3.9
ase # https://wiki.fysik.dtu.dk/ase/install.html
pymatgen # https://pymatgen.org/installation.html
pyxtal # https://pyxtal.readthedocs.io/en/latest/Installation.html#installation
torch # https://pytorch.org/get-started/locally/#linux-installation
matgl # https://matgl.ai/#installation
chgnet # https://chgnet.lbl.gov/#installation
mace-torch # https://mace-docs.readthedocs.io/en/latest/guide/installation.html
scikit-opt # https://scikit-opt.github.io/scikit-opt/#/en/README?id=install
Installation
PyPI distribution
$ pip install cryspr
Note on the installation of matgl (1.0.0) library:
- Windows OS:
pip install crysprwill normally install all related dependencies, and thematglworks for latest version of torch (as-of-date is 2.3.0) - Linux OS: the
matglrequirestorch<=2.2.1and additionallypydantic, which is not well handled by pip. The two dependencies have to be manually installed usingpip, or to installmatglusing other package manager, like,conda.
Source code (GitHub)
-
Download the repo or git clone.
-
Add the CrySPR project into the system PYTHONPATH either by, e.g., on Linux/Mac OS
$ export PYTHONPATH=/path/to/CrySPR:$PYTHONPATH
or by in the python code
import sys
sys.path.insert(0, '/path/to/CrySPR')
Usage
To be updated.
Examples
Ground-state CaTiO3
This example shows the implementation of crystal structure relaxation and prediction from three test space groups (No. 62, 74, 140) through a random prediction mode. The ML-IAP calculator is CHGNet.
Metadata
Release files for cryspr 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cryspr-0.0.2.tar.gz | 14.1 kB | Without provenance | Details for cryspr-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cryspr-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for cryspr-0.0.2-py3-none-any.whl |
Total release size: 30.4 kB
Release files / cryspr-0.0.2.tar.gz
| Download URL | cryspr-0.0.2.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be5291fc2e88effcfd0c18f224e5cbeb636b190d5001601b56a42c271e5182d0
|
|
BLAKE2b-256 checksum How to use checksums |
6c762848085158946e2050dcfb828c0500ee302e571ff65f72ec84a2fc5e9d79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Release files / cryspr-0.0.2-py3-none-any.whl
| Download URL | cryspr-0.0.2-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ab36f0c007d06584d87580c6609467329d6cd9c075fdb5c2ad8ef0108fa7db5
|
|
BLAKE2b-256 checksum How to use checksums |
103e627785395770bd251ee1e44c190c4c25a9cca6958a48077260fe15d8cc4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Security for cryspr 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.