Dpdata plugin of ABINIT hist file
Project description
dpdata_abinit
Abinit plugin for dpdata
Install
pip install .
Usage:
-
Prepare the abinit histfile which contains a set of structures and the corresponding energies, forces, and stresses. Here we call this file Abinit_hist_file.abihist
-
Write a python script like this.
#!/usr/bin/env python3
import dpdata
# load data from the file Abinit_hist_file.abihist
d = dpdata.LabeledSystem("Abinit_hist_file.abihist", format='abihist')
# write to raw file
d.to_deepmd_raw('00.data')
# You can also write to npy file. The data set is splitted into multiple npy files, each containing set_size of samples.
d.to_deepmd_npy('00.data', set_size=2638)
- Run the script
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
dpdata_abinit-0.0.4.tar.gz
(12.3 kB
view details)
Built Distribution
File details
Details for the file dpdata_abinit-0.0.4.tar.gz
.
File metadata
- Download URL: dpdata_abinit-0.0.4.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 791d5483c08f2d3942f8e3efdd0927f070b49dba7268169af6098f379131c6e2 |
|
MD5 | 4607a771b5055a3778bd4bde0c658a8e |
|
BLAKE2b-256 | acaf8cfe344dfce4fb187c6e02026d9324c6c52e5ead7df78389cdbf7376d5bb |
File details
Details for the file dpdata_abinit-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: dpdata_abinit-0.0.4-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37f68a6570cec801e9211ef7dc31ffd595891ebcc281f7452e96928de870472d |
|
MD5 | c4c14659c094aae1eea62a2efcdec970 |
|
BLAKE2b-256 | 60645ccfad62441542b9453405c33e7ecfe409f31ef3403346704230a9d97606 |