读取和操作Gromacs能量文件

panedr的Python项目详细描述


Build Status

panedr读取gromacs edr文件并将其内容作为pandas返回 数据帧。库公开了一个函数edr_to_df 获取EDR文件路径并返回pandas的函数 数据帧。

panedr与Python2.7及更高版本兼容,并且与 Python3.5及更高版本。

示例

importpanedr# Read the EDR filepath='ener.edr'df=panedr.edr_to_df(path)# The `verbose` optional parameter can be set to True to display the# progress on stderrdf=panedr.edr_to_df(path,verbose=True)# Get the average pressure after the first 10 nspressure_avg=df[u'Pressure'][df[u'Time']>10000].mean()

安装

pip install panedr

测试

panedr存储库包含一系列测试。如果您下载或 从存储库中克隆了代码,您可以运行测试。为此, 安装pytest,并在 panedr源代码,运行:

pytest -v tests

许可证

panedr在python中翻译gromacs源代码的一部分。 因此,panedr分布在同一个gnu小将下 作为gromacs的公共许可版本2.1。

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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
在java中使用ActionListeners的小程序   为什么这两个文件。存在(…)和文件。不存在(…)?   需要帮助将XML/Java转换为edi(834)文档吗   java GWT 2.5.1和IntelliJ调试模式,可序列化异常   java由用户运行给定的程序   junit Java<>从函数返回的类型   java Hibernate:我需要刷新()吗?   java如何通过GET REST API调用传递ssl证书   java H2 1.4.185无法通过上次使用Hibernate实体运行的服务器生成的UUID进行查询   javajavafx:具有本机行为的自定义窗口   java是否替换当前字符串设置以从xml收集字符串项?   RelativeLayout下的java Android viewpager   java源代码在JD反编译工具反编译后有注释   java Recycler视图不显示Firebase中的图片和类别