Skip to main content

Dpdata plugin of ABINIT hist file

Project description

dpdata_abinit

Abinit plugin for dpdata

Install

pip install .

Usage:

  1. 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

  2. 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)
  1. Run the script

Project details


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 hashes)

Uploaded Source

Built Distribution

dpdata_abinit-0.0.4-py3-none-any.whl (14.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page