Skip to main content

Python and C/C++ code to read halo catalogs and other Abacus N-body data products

Project description

abacusutils

Documentation Status PyPI Build Status

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 "Custom->Releases" 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":

pip install abacusutils

The Unix pipe interface (pipe_asdf) is also installed as part of the pip install. Note that our custom ASDF fork is no longer required as of abacusutils 1.0.0.

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

Usage

abacusutils 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

abacusutils-1.0.2.tar.gz (52.5 kB view details)

Uploaded Source

Built Distribution

abacusutils-1.0.2-py3-none-any.whl (66.6 kB view details)

Uploaded Python 3

File details

Details for the file abacusutils-1.0.2.tar.gz.

File metadata

  • Download URL: abacusutils-1.0.2.tar.gz
  • Upload date:
  • Size: 52.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for abacusutils-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9078dc89178e3828f6318461222f12aba54d064fa16b7ccab405bfb6924d25e9
MD5 f11a62fa96460b029591b6a45b62630e
BLAKE2b-256 2e82651009aa7dbbb145badf8a91c9ed7c54779e3d81b13162ad69d1a04de6b9

See more details on using hashes here.

Provenance

File details

Details for the file abacusutils-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: abacusutils-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 66.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for abacusutils-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4f3fd9be6953b3f0bf2e1e3565251f09a98febc035b4fbb9c8994882efe0de47
MD5 93d9b880993cfa51d98f10df7ea1a85c
BLAKE2b-256 ea5fb7ea9ce31eb66bff633fccba1dd48dea3b3a7a483eec60f299623b3ca831

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page