gridmlip
Contents
About
gridmlip is a library for the symmetry-aware grid-based sampling of the energy landscape of mobile species in solids using machine learning interatomic potentials (MLIPs).
Installation
pip install gridmlip
or
git clone https://github.com/dembart/gridmlip
cd gridmlip
pip install .
How to use
Here we describe the pipeline in general. For a specific example, see Notebooks.
from gridmlip import Grid
from gridmlip.integrations.sevennet import evaluate_atoms_list # sevenn must be installed
file = './data/Li10Ge(PS6)2_mp.cif'
specie = 3
### Create grid
g = Grid.from_file(
file,
specie,
r_min=0.8,
r_cut=5.0,
resolution=0.2,
symprec=0.1,
empty_framework=True,
verbose=True
)
### Prepare inequivalent atomic configurations
atoms_list = g.construct_configurations(config_format='ase')
### Predict energies
energy_list, forces_list = evaluate_atoms_list(
atoms_list,
model_path='./data/checkpoint_sevennet_0.pth',
device='cuda',
compute_force=False,
batch_size=256
)
### Load energies
g.load_energies(energy_list)
### Determine percolation barriers
barriers = g.percolation_barriers(n_jobs=-1)
### Save .grd file for visualization in VESTA 3.0
g.write_grd('test.grd')
Notebooks
How to cite
If you use the gridmlip library, please, consider citing this repository.
Release files for gridmlip 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gridmlip-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / gridmlip-0.2.2-py3-none-any.whl
| Download URL | gridmlip-0.2.2-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06d32399bea878234a97d2fab5e6ea6fb71d0baf8abf7e27142190c80fd3fc60
|
|
BLAKE2b-256 checksum How to use checksums |
d1da7bb9b8e9869a03a6d432eaa5da76fdcba62436ff27ebb5aa91525c5f0436
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.5
|