跳转到主要内容

TNG轨迹库的最小Cython包装器

项目描述

https://github.com/MDAnalysis/pytng/workflows/build/badge.svg https://github.com/MDAnalysis/pytng/workflows/docs/badge.svg https://badge.fury.io/py/pytng.svg https://codecov.io/gh/MDAnalysis/pytng/branch/master/graph/badge.svg https://zenodo.org/badge/92180386.svg

此包提供了TNGFileIterator对象,允许以简单的Python方式访问TNG文件中的数据。

import pytng
import numpy as np

with pytng.TNGFileIterator('traj.tng', 'r') as tng:

  positions = np.empty(shape=(tng.n_atoms,3), dtype=np.float32)

  for ts in tng:
    time = ts.get_time()
    positions = ts.get_positions(positions)

此包包含对TNG文件格式libtng的Python绑定[1] [2]. 它被分子模拟程序(如Gromacs)用于存储分子动力学模拟的拓扑和结果。

警告

此软件包处于积极开发中。API可能在不同的版本之间发生变化。

安装

要使用pip安装,只需运行

pip install pytng

要从源安装最新开发版本,请运行

git clone git@github.com:MDAnalysis/pytng.git
cd pytng
python setup.py install

获取帮助

如需使用此库的帮助,请访问GitHub问题跟踪器

项目详情


下载文件

下载适合您平台的应用程序。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

pytng-0.3.3.tar.gz (10.6 MB 查看散列值)

上传时间 源代码

构建分发

pytng-0.3.3-cp312-cp312-win_amd64.whl (694.3 kB 查看散列值)

上传时间 CPython 3.12 Windows x86-64

pytng-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB 查看散列值)

上传时间 CPython 3.12 manylinux: glibc 2.17+ x86-64

pytng-0.3.3-cp312-cp312-macosx_10_9_x86_64.whl (668.2 kB 查看散列值)

上传时间 CPython 3.12 macOS 10.9+ x86-64

pytng-0.3.3-cp311-cp311-win_amd64.whl (699.6 kB 查看散列值)

上传时间 CPython 3.11 Windows x86-64

pytng-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB 查看散列值)

上传时间 CPython 3.11 manylinux: glibc 2.17+ x86-64

pytng-0.3.3-cp311-cp311-macosx_10_9_x86_64.whl (680.6 kB 查看散列值)

上传时间 CPython 3.11 macOS 10.9+ x86-64

pytng-0.3.3-cp310-cp310-win_amd64.whl (700.8 kB 查看散列值)

上传于 CPython 3.10 Windows x86-64

pytng-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB 查看哈希值)

上传于 CPython 3.10 manylinux: glibc 2.17+ x86-64

pytng-0.3.3-cp310-cp310-macosx_10_9_x86_64.whl (687.6 kB 查看哈希值)

上传于 CPython 3.10 macOS 10.9+ x86-64

pytng-0.3.3-cp39-cp39-win_amd64.whl (702.9 kB 查看哈希值)

上传于 CPython 3.9 Windows x86-64

pytng-0.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB 查看哈希值)

上传于 CPython 3.9 manylinux: glibc 2.17+ x86-64

pytng-0.3.3-cp39-cp39-macosx_10_9_x86_64.whl (685.5 kB 查看哈希值)

上传于 CPython 3.9 macOS 10.9+ x86-64

支持者

AWSAWS 云计算和安全赞助商 DatadogDatadog 监控 FastlyFastly CDN GoogleGoogle 下载分析 MicrosoftMicrosoft PSF赞助商 PingdomPingdom 监控 SentrySentry 错误日志 StatusPageStatusPage 状态页面