Skip to main content

dlpoly4 python module for file manipulation

Project description

https://badge.fury.io/py/dlpoly-py.svg https://img.shields.io/conda/vn/conda-forge/dlpoly-py.svg

dlpoly-py package contains tools to read input and output for DL_POLY it can also produce inputs and be mixed with other python packages like ASE, MDAnalysis, MDAnse or pymatgen

install

You need Python 3.6 or later to run dlpoly-py. You can have multiple Python versions (2.x and 3.x) installed on the same system without problems.

To install Python 3 for different Linux flavors, macOS and Windows, packages are available at https://www.python.org/getit

Using pip

pip is the most popular tool for installing Python packages, and the one included with modern versions of Python.

dlpoly-py can be installed with pip

pip install dlpoly-py

Note:

Depending on your Python installation, you may need to use pip3 instead of pip.

pip3 install dlpoly-py

Depending on your configuration, you may have to run pip like this:

python3 -m pip install dlpoly-py

Using pip (GIT Support)

pip currently supports cloning over git

pip install git+https://gitlab.com/drFaustroll/dlpoly-py.git

For more information and examples, see the pip install reference.

Using a virtual environment

# create virtual env
virtualenv3 venv/dlpoly
source venv/dlpoly/bin/activate
pip3 install dlpoly-py

Using conda

conda is the package management tool for Anaconda Python installations.

Installing dlpoly-py from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge

Once the conda-forge channel has been enabled, dlpoly-py can be installed with:

conda install dlpoly-py

It is possible to list all of the versions of dlpoly-py available on your platform with:

conda search dlpoly-py --channel conda-forge

usage

Examples can be found in https://gitlab.com/drFaustroll/dlpoly-py/-/tree/devel/examples

sime run using Ar data from above folder.

from dlpoly import DLPoly

dlp="/home/drFaustroll/playground/dlpoly/dl-poly-alin/build-yaml/bin/DLPOLY.Z"

dlPoly = DLPoly(control="Ar.control", config="Ar.config",
                field="Ar.field", workdir="argon")
dlPoly.run(executable=dlp,numProcs = 4)

# change temperature and rerun, from previous termination
dlPoly = DLPoly(control="Ar.control", config="argon/REVCON", destconfig="Ar.config",
             field="Ar.field", workdir="argon-T310")
dlPoly.control.temp = 310.0
dlPoly.run(executable=dlp,numProcs = 4)

alternatively you can set the environment variable DLP_EXE to point to DL_POLY_4 executable and remove the executable parameter from run.

export DLP_EXE="/home/drFaustroll/playground/dlpoly/dl-poly-alin/build-yaml/bin/DLPOLY.Z"
from dlpoly import DLPoly

dlPoly = DLPoly(control="Ar.control", config="Ar.config",
                field="Ar.field", workdir="argon")
dlPoly.run(numProcs = 4)

# change temperature and rerun, from previous termination
dlPoly = DLPoly(control="Ar.control", config="argon/REVCON", destconfig="Ar.config",
             field="Ar.field", workdir="argon-T310")
dlPoly.control.temp = 310.0
dlPoly.run(numProcs = 4)

authors

  • Alin M Elena, Daresbury Laboratory, UK

  • Jacob Wilkins, University of Oxford, UK

contact

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

dlpoly-py-0.3.5.tar.gz (10.8 MB view details)

Uploaded Source

Built Distributions

dlpoly_py-0.3.5-py3.10.egg (80.8 kB view details)

Uploaded Source

dlpoly_py-0.3.5-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file dlpoly-py-0.3.5.tar.gz.

File metadata

  • Download URL: dlpoly-py-0.3.5.tar.gz
  • Upload date:
  • Size: 10.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for dlpoly-py-0.3.5.tar.gz
Algorithm Hash digest
SHA256 258f3f965f440bc4ca869c6f60bb41584fd54366cd4ae8d5221123aa05926ad4
MD5 0cadfc45e76048bd5699f893e885b4d7
BLAKE2b-256 013a0ca023361c8ad68728f31551a94844a1305887f81e97da15e9bf8bd4ed95

See more details on using hashes here.

Provenance

File details

Details for the file dlpoly_py-0.3.5-py3.10.egg.

File metadata

  • Download URL: dlpoly_py-0.3.5-py3.10.egg
  • Upload date:
  • Size: 80.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for dlpoly_py-0.3.5-py3.10.egg
Algorithm Hash digest
SHA256 dc40e0b3060d6917427f2796fbfeb3e750f583996083e94a4fc8b37fbcf0d66d
MD5 5f310665a23279ba9adb350dd30c09db
BLAKE2b-256 fcc28f4b1c1f2125836077bed00b9b9a1e5f7dcf6260c5d05562ad8d2d8dbfc5

See more details on using hashes here.

Provenance

File details

Details for the file dlpoly_py-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: dlpoly_py-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 33.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for dlpoly_py-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4ce1cf706cb36cc2820aa2ad7cc466d4feac9d37613878f9dc06de1d765891c5
MD5 b308a4948c61f21f7ef4e4ab5cdc6fd7
BLAKE2b-256 15863a13e8f01f7c8c36156df6bbbfa7b416f31783df063496e7101237bc27e8

See more details on using hashes here.

Provenance

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