跳转到主要内容

用于读取光环目录和其他Abacus N体数据产品的Python代码

项目描述

abacusutils

Abacus Logo

Documentation Status PyPI Tests pre-commit.ci status

abacusutils 是一个用于读取和处理 Abacus N-body 项目数据产品的包。特别是,这些实用程序旨在与 AbacusSummit 套件模拟一起使用。该包专注于 Python 3 API,但也有一些功能提供语言无关的 Unix 管道接口。

这些接口的文档在此处: https://abacusutils.readthedocs.io

点击右上角的 GitHub "Watch" 按钮,并选择 "Custom->Releases",以接收有关错误修复和新功能的通知!

安装

Python abacusutils 包托管在 PyPI 上,可以通过安装 "abacusutils" 来安装

pip install abacusutils

pip install abacusutils[all]

有关更多信息,请参阅 https://abacusutils.readthedocs.io/en/latest/installation.html

用法

abacusutils 有多个接口,在此处和 https://abacusutils.readthedocs.io/en/latest/usage.html 中进行了总结。

将很快在 AbacusSummit 网站上提供使用 abacusutils 与 AbacusSummit 数据一起使用的具体示例:https://abacussummit.readthedocs.io

Python

abacusutils PyPI 包包含一个名为 abacusnbody 的 Python 包。这是导入的名称(不是 abacusutils,这只是 PyPI 包的名称)。例如,要导入 compaso_halo_catalog 模块,请使用

import abacusnbody.data.compaso_halo_catalog

Unix 管道

pipe_asdf Python 脚本读取 ASDF 文件的列并将它们通过 stdout 管道传输。例如

    $ pipe_asdf halo_info_000.asdf -f N -f x_com | ./client

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪一个,请了解有关安装包的更多信息。

源分发

abacusutils-2.0.1.tar.gz (24.9 MB 查看哈希值)

上传时间

构建分发

abacusutils-2.0.1-py3-none-any.whl (9.3 MB 查看哈希值)

上传时间 Python 3

由以下支持