Skip to main content

cpctools

PyPI - License PyPI PyPI - Python Version Code style: black Hatch project Documentation Status Coverage Status Powered by MDAnalysis

We are no longer developing in this project. Future works will be in dynsight.

cpctools is a python 3.8/3.9/3.10 library aimed at simplifying the analysis of Molecular Dynamics simulations.

cpctools stands for Computational Physical Chemistry TOOLS, or, if you prefer, for Chemical Physics Computational TOOLS.

It contains two packages, SOAPify and SOAPify.HDF5er.

cpctools uses h5py to store the trajectories, the SOAP fingerprints, and the analysis results in a binary format, facilitated by HDF5er.

The documentation is available on read the docs. There you can consult the documentation for each available version of the package.

How To Install

To install the stable version of cpctools just type:

pip install cpctools

If you want to use dscribe or quippy for calculating the SOAP features you should install them separately, since they are quite heavy packages on their own, and usually you would use only one of these packages:

pip install "dscribe<=1.2.2,>1.2.0"
pip install "quippy-ase==0.9.10"

package: SOAPify

This package contains:

  • a toolbox to calculate the SOAP fingerprints of a system of atoms. The principal aim is to simplify the setup of the calculation. This toolbox depends on dscribe or quippy and 'unify' the output of the two codes.
  • a toolbox to calculate the distances between SOAP fingerprints
  • a simple analysis tool for trajectories of classified atoms

package: SOAPify.HDF5er

This package is a toolbox to create hdf5 files with h5py from the trajectory and topology files. The format we use do not align with h5md

Our format is thought to speed up the calculations without occupying too much RAM, thanks to the hdf5 dataset chunking capabilities.

  • The data within the files are organized into Group categories:
    • "Trajectories" contains subgroups that represent the various stored trajectories, each trajectory subgroup contains three datasets:
      • "Types" contains the types of atoms in the simulation
      • "Box" contains the history of the box dimensions
      • "Trajectory" contains the history of the particle positions
    • "SOAP" group contains the Dastasets of the calculated SOAP fingerprints, each SOAP Dataset contains attributes with the settings to reproduce the results.
    • "Classification" contain a group per trajectory, the format of the Dataset contained within is not fixed
  • The user can choose to use a single file per project or to store separately the results of the various steps of the analysis project (this is more recommended). SOAPify.HDF5er contains a tool for exporting the trajectories from the hdf5 file to extended xyz format, compatible with ovito

Metadata

Release files for cpctools 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cpctools 0.1.1
File Size Uploaded
cpctools-0.1.1.tar.gz 57.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cpctools 0.1.1
File Interpreter ABI Platform
cpctools-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 94.0 kB

Release files / cpctools-0.1.1.tar.gz

Download URL cpctools-0.1.1.tar.gz
Size 57.3 kB
Tags Source
SHA-256 checksum
How to use checksums
819a9016f601a4c8920aa0795a24828620db8cdccce08149b89d8c1292ef1e4a
BLAKE2b-256 checksum
How to use checksums
c0060ab1ad49be360fcf78520d2961d8b437ec7b2fbf378cb4cec629ec13cb9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / cpctools-0.1.1-py3-none-any.whl

Download URL cpctools-0.1.1-py3-none-any.whl
Size 36.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72a0716764668f99c8ee1580c572ecfd7f479d4e2481d8b9c2d34c839904c979
BLAKE2b-256 checksum
How to use checksums
05e9d0507adf016006f765375b342b3465096eb5f592efa6a10faad24cb5850b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page