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.

The pandas library is required.

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

The panedr module can be installed from source. The source files are available on Github at https://github.com/jbarnoud/panedr. Once the file downloaded, go to the panedr directory and run:

pip install .

You may not have the permissions to install modules system wide, or you may want to install panedr only for the current user. To install the module user wide only, run:

pip install --user .

You may want to consider virtualenv.

panedr is compatible with Python 2.7 and greater and python 3.3 and greater.

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.

Source Distribution

panedr-0.1.tar.gz (15.8 MB view details)

Uploaded Source

Built Distribution

panedr-0.1-py2-none-any.whl (16.0 MB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: panedr-0.1.tar.gz
  • Upload date:
  • Size: 15.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for panedr-0.1.tar.gz
Algorithm Hash digest
SHA256 e944dd1945c63bb121d4f6f6c70cf3da7a27aa61e6db25107a22bfa9a14709db
MD5 a8597b488f402def61c7b631ad233033
BLAKE2b-256 f8afdad91cbeaca1ef7c9b49e97a6b6a72a5cc4c4bce8efc132c31d70b8190bb

See more details on using hashes here.

Provenance

File details

Details for the file panedr-0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for panedr-0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 4a8066388c8537beb5dbf1faca945d7642f0f305bb6054dd1b5c7279a5130588
MD5 3c3dffb7c069a4c83b850b42bc58ffcf
BLAKE2b-256 79023c411fbec905783756c18ef9c03450947dabd9b4524e983017b9f2d1738a

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