Python and C/C++ code to read halo catalogs and other Abacus N-body data products
Project description
abacusutils
abacusutils is a package for reading and manipulating data products from the Abacus N-body project. In particular, these utilities are intended for use with the AbacusSummit suite of simulations. We provide multiple interfaces: primarily Python 3, but also C/C++ [coming soon!] and language-agnostic interfaces like Unix pipes.
These interfaces are documented here: https://abacusutils.readthedocs.io
Press the GitHub "Watch" button in the top right and select "Releases Only" to be notified about bug fixes and new features! This package is still in early stages, and bugs are likely to be identified and squashed, and new performance opportunities identified.
Installation
The Python abacusutils package is hosted on PyPI and can be installed by installing "abacusutils" and our fork of the ASDF library with the following command:
pip install git+https://github.com/lgarrison/asdf.git abacusutils
The Unix pipe interface (pipe_asdf
) is also installed as part of the pip install.
The C/C++ code (coming soon!) can be downloaded directly by cloning this repository:
git clone https://github.com/abacusorg/abacusutils.git
or by downloading a zip archive of the repository:
wget https://github.com/abacusorg/abacusutils/archive/master.zip
Python Dependencies
The Python dependencies are numpy, asdf (our fork), blosc, astropy, and numba. The only "unusual" dependency is asdf, because we require our fork of the project to be installed (located at: https://github.com/lgarrison/asdf/). Our fork supports blosc compression.
Usage
abacusutil has multiple interfaces, summarized here and at https://abacusutils.readthedocs.io/en/latest/usage.html.
Specific examples of how to use abacusutils to work with AbacusSummit data will soon be given at the AbacusSummit website: https://abacussummit.readthedocs.io
Python
The abacusutils PyPI package contains a Python package called abacusnbody
.
This is the name to import (not abacusutils
, which is just the name of the PyPI package).
For example, to import the compaso_halo_catalog
module, use
import abacusnbody.data.compaso_halo_catalog
Unix Pipes
The pipe_asdf
Python script reads columns from ASDF files and pipes them to
stdout
. For example:
$ pipe_asdf halo_info_000.asdf -f N -f x_com | ./client
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file abacusutils-0.3.0.tar.gz
.
File metadata
- Download URL: abacusutils-0.3.0.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1.post20200802 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 109d074a1ed2b2ad5d462669aa2cfe7779f575b4d17c3b130452e2f22d78834e |
|
MD5 | 31555521442cada31c672acb65e88c2f |
|
BLAKE2b-256 | 404bf321cc2830eac2f4cb6d5af62c8a0c6dda57674c1e2570d767d9aa2be823 |
Provenance
File details
Details for the file abacusutils-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: abacusutils-0.3.0-py3-none-any.whl
- Upload date:
- Size: 34.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1.post20200802 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c246644f0e572cd2d34450b4da1485e93500d45577388144131627cc5bf1696 |
|
MD5 | e2b7005ede901c512318cca418554b8f |
|
BLAKE2b-256 | 60613ea5827d8c4e3fe0c4cfdb506a4e1b5e7feb3e6794aa090afda1ca15493f |