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.3 and greater.

Example

import panedr

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

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

Install

pip install panedr

Tests

The panedr module comes with a series of tests. To run these tests, install nose, and run:

nosetests -v panedr

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.

Files for panedr, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size panedr-0.1.1.tar.gz (15.8 MB) File type Source Python version None Upload date Hashes View
Filename, size panedr-0.1.1-py2.py3-none-any.whl (16.0 MB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page