Skip to main content

A package for reading GROMACS .trr files

Project description

https://travis-ci.org/andersle/pytrr.svg?branch=master https://coveralls.io/repos/github/andersle/pytrr/badge.svg?branch=master

pytrr

pytrr is a Python package for reading .trr [1] files from GROMACS [2].

pytrr is intended as a lightweight, pure Python, library for reading .trr trajectories and it gives access to positions, velocities, etc. as numpy arrays.

Example

from pytrr import GroTrrReader

with GroTrrReader('traj.trr') as trrfile:
    for frame in trrfile:
        print(frame['step'])
        frame_data = trrfile.get_data()
        print(frame_data['x'][0])

Installation

pytrr can be installed via pip:

pip install pytrr

References

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

pytrr-0.5.0.tar.gz (18.3 kB view details)

Uploaded Source

File details

Details for the file pytrr-0.5.0.tar.gz.

File metadata

  • Download URL: pytrr-0.5.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for pytrr-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4824f21ea779342553a1bd9b0e8e8c7c1af971f937cfb02776ea675968057296
MD5 e2771bb3f85839d2ba0fa33160fc812f
BLAKE2b-256 817e440748492a4f68f3a9780056d5eb9458c5ef1e76befd94550c7ad22626cf

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