Skip to main content

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

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for dpdata_abinit-0.0.4.tar.gz
Algorithm Hash digest
SHA256 791d5483c08f2d3942f8e3efdd0927f070b49dba7268169af6098f379131c6e2
MD5 4607a771b5055a3778bd4bde0c658a8e
BLAKE2b-256 acaf8cfe344dfce4fb187c6e02026d9324c6c52e5ead7df78389cdbf7376d5bb

See more details on using hashes here.

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

Hashes for dpdata_abinit-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 37f68a6570cec801e9211ef7dc31ffd595891ebcc281f7452e96928de870472d
MD5 c4c14659c094aae1eea62a2efcdec970
BLAKE2b-256 60645ccfad62441542b9453405c33e7ecfe409f31ef3403346704230a9d97606

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 files

0.0.3

2 files

0.0.2

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page