Skip to main content

Read and manipulate Gromacs energy files

Project description

Build Status

Panedr reads a Gromacs EDR file and returns its content as a pandas dataframe. The library exposes one function—the edr_to_df function—that gets the path to an EDR file and returns a pandas dataframe.

panedr is compatible with python 2.7 and greater, and with python 3.5 and greater.

Example

import panedr

# Read the EDR file
path = 'ener.edr'
df = panedr.edr_to_df(path)

# The `verbose` optional parameter can be set to True to display the
# progress on stderr
df = panedr.edr_to_df(path, verbose=True)

# Get the average pressure after the first 10 ns
pressure_avg = df[u'Pressure'][df[u'Time'] > 10000].mean()

Install

pip install panedr

Tests

The panedr repository contains a series of tests. If you downloaded or cloned the code from the repository, you can run the tests. To do so, install pytest, and, in the directory of the panedr source code, run:

pytest -v tests

License

Panedr translate in python part of the source code of Gromacs. Therefore, Panedr is distributed under the same GNU Lesser General Public License version 2.1 as Gromacs.

Panedr — a library to manipulate Gromacs EDR file in python

Copyright (C) 2016 Jonathan Barnoud

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

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

panedr-0.4.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

panedr-0.4.0-py2.py3-none-any.whl (20.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file panedr-0.4.0.tar.gz.

File metadata

  • Download URL: panedr-0.4.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for panedr-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c3c3196455687b9dd23161c44344fb573a1346c79e15a0722e97e3813b8d19dc
MD5 77b5394c0ee0eb55b99ce6479fa5a400
BLAKE2b-256 c06d208e30972e982775ea5a896f81dfbfe0d84d050e3f4a68fce94b1e8218e6

See more details on using hashes here.

Provenance

File details

Details for the file panedr-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: panedr-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for panedr-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c2625de92150098f0e920d9936453be823a88b75a1c54f85bd171e5328f534fb
MD5 efd83a68beaf56d59641afe0186dce69
BLAKE2b-256 611b9135ffd3721ae8a0b8cba356eef3749f88c1222b7115dd4e5395c7ae3603

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