Skip to main content
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

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.

Release history Release notifications | RSS feed

This release

0.5.0 This release

1 file

0.4.1

1 file

0.4.0

1 file

0.3.0

1 file

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