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. Most of the code is in Python 3, but we also provide some examples of how to interface with C/C++.
Full API documentation: https://abacusutils.readthedocs.io
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 C/C++ code (e.g. the pack9/
directory) 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
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
See the full documentation at https://abacusutils.readthedocs.io
Specific examples of how to use abacusutils to work with AbacusSummit data are given at the AbacusSummit website: https://abacussummit.readthedocs.io
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
Hashes for abacusutils-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22f7dcd2fd79c06949115f37d2b0eca3606260ccd2d16fe309d1380be67797ef |
|
MD5 | 8bf61554689dcbd626651a66862a6aa3 |
|
BLAKE2b-256 | ab460dfb504715715164b62a40ecab539f6fac14c38c7fc27a1d65add5bf1f3d |