Skip to main content

A python package to analyze XDATCAR files generated from VASP

Project description

xdatbus

Build Conda codecov

xdatbus is a Python library designed specifically for VASP users engaged in research on ab-initio MD simulations, as well as biased MD simulations. The primary file addressed by the package is the XDATCAR, a trajectories file generated by the Vienna Ab-initio Simulation Package (VASP). The package documentation can be accessed here and the Jupyter Notebook tutorial is also available.

Installation

Make sure you have a Python interpreter, preferably version 3.10 or higher. Then, you can simply install xdatbus from pypi using pip:

pip install xdatbus

If you'd like to use the latest unreleased version on the main branch, you can install it directly from GitHub:

pip install -U git+https://https://github.com/jcwang587/xdatbus

The package is also availabe from conda-based installation. It is generally recommended you first create a separate environment, then you can install xdatbus via conda as well via the xdatbus channel on Anaconda cloud:

conda install --channel xdatbus xdatbus

If you plan to use PLUMED to analyze biased MD sampling results, you can also install the conda version of PLUMED together:

conda install -c xdatbus -c conda-forge xdatbus plumed

Get Started

This is a brief example demonstrating how to use the basic function of xdatbus to aggregate multiple xdatcar files into one and unwrap the coordinates into an .xyz file:

import os
from xdatbus import xdc_aggregate, xdc_unwrap

xdc_dir = "./data"
xdb_path = os.path.dirname(xdc_dir)

xdc_aggregate(xdc_dir=xdc_dir, output_path=xdb_path)
xdc_unwrap(xdc_path=xdb_path)

Update log

0.0.6 first upload for test

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

xdatbus-0.0.170.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

xdatbus-0.0.170-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file xdatbus-0.0.170.tar.gz.

File metadata

  • Download URL: xdatbus-0.0.170.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for xdatbus-0.0.170.tar.gz
Algorithm Hash digest
SHA256 4af204cb25d97459d21dce605c2f0efd55557a2c27c56d5f42d24e44766260d0
MD5 684fb229930d98c8c3da137c91d7d3a2
BLAKE2b-256 f5435c6fb4e4c211f7b03d0214dea6b33f6e449e064c5c864ed862b8f36e7f6e

See more details on using hashes here.

File details

Details for the file xdatbus-0.0.170-py3-none-any.whl.

File metadata

  • Download URL: xdatbus-0.0.170-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for xdatbus-0.0.170-py3-none-any.whl
Algorithm Hash digest
SHA256 b9d7841bbf30244906d35672df574c6c1063d8df88c1bf7b871f24c28af657c9
MD5 fa25d44b130466cb6dddfb15b76aafa0
BLAKE2b-256 b8bc095744eafd6e30b193ed2e90e6cf03c294bd7cbd8b480d6d5988749f57b7

See more details on using hashes here.

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