Python implementation of crystal structure pre-relaxation and predcition (CrySPR).
Project description
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cryspr-0.0.1.0.tar.gz.
File metadata
- Download URL: cryspr-0.0.1.0.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b68eb3df644b4210ed09ce92404d00824b09451a40c64ca017066fdd50bb99b
|
|
| MD5 |
4af4efb0d25b6d35431d03b55584aa9a
|
|
| BLAKE2b-256 |
355185cd790397e2d7962fcd3effd3c66cc09d07a8c1a3cbdba56e301909ccb4
|
File details
Details for the file cryspr-0.0.1.0-py3-none-any.whl.
File metadata
- Download URL: cryspr-0.0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
342e5b1fc150f05a1fed51c1e1250eeacffc9469f31f83959621e6b804ae113e
|
|
| MD5 |
da3c6ea0e416966c1620b2c1e882495d
|
|
| BLAKE2b-256 |
f07fa558cbea8a56956a17260f02141e7d5f6c7c984284eb851b594b6ffe2c59
|