- ase calculator of NEP
- latent descriptor of atoms
- structures select
- Farthest Point Sampling
| Package | version |
|---|---|
| Python | >= 3.8 |
| NumPy | < 1.22.0 |
| SciPy | >= 1.1 |
| ase | >= 3.18.0 |
$ pip install git+https://github.com/bigd4/PyNEP.git$ git clone --recursive https://github.com/bigd4/PyNEP.git
$ cd pynep
$ python setup.py install$ git clone --recursive https://github.com/bigd4/PyNEP.git
$ cd pynep/nep_cpu
$ mkdir build
$ cd build
$ cmake .. && make
$ cp nep.so ../../pynepAdd pynep to your PYTHONPATH environment variable in your ~/.bashrc file.
$ export PYTHONPATH=<path-to-pynep-package>:$PYTHONPATHfrom pynep.calculate import NEP
import numpy as np
from ase.build import bulk
a = bulk('TePb', 'rocksalt', 6.6)
calc = NEP({'Te': 0, 'Pb': 1}, "nep.txt")
a.set_calculator(calc)
e = a.get_potential_energy()
f = a.get_forces()