Skip to main content

Light-weight astronomical N-body/SPH analysis for python

Project description

pynbody

Build Status

Pynbody is an analysis framework for N-body and hydrodynamic astrophysical simulations supporting PKDGRAV/Gasoline, Gadget, Gadget4/Arepo, N-Chilada and RAMSES AMR outputs. It supports Python 3 only (versions prior to 1.0 are still available on PyPI for Python 2). Minor version support adheres roughly to NEP29.

Written in Python, the core tools are accompanied by a library of publication-level analysis routines. For a quick tour of some of the features, have a look at this IPython notebook.

Getting started

If python and the standard pip package manager is installed and properly configured, you can simply do:

$ pip install pynbody

If this fails, you may need some more detailed installation instructions. Once you have the package installed, try the introductory tutorials. The full documentation can be found here.

Contributing

Help us make pynbody better! As you develop analysis for your science with pynbody, consider making your code available for everyone else to use. You can do this by creating a tutorial or cookbook or by adding your code to the relevant sub-module and submitting a pull request (make a fork first -- see https://help.github.com/articles/using-pull-requests).

Acknowledging the code

When using pynbody, please acknowledge it by citing the Astrophysics Source Code Library entry. Optionally you can also cite the Zenodo DOI for the specific version of pynbody that you are using, which may be found here.

Support and Contact

If you have trouble with Pynbody or you have feature requests/suggestions you can submit an issue, and/or send us an email on the Usergroup mailing list.

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

pynbody-1.6.0.post0.tar.gz (870.1 kB view hashes)

Uploaded Source

Built Distributions

pynbody-1.6.0.post0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.2 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pynbody-1.6.0.post0-cp312-cp312-macosx_11_0_arm64.whl (3.2 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

pynbody-1.6.0.post0-cp312-cp312-macosx_10_9_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

pynbody-1.6.0.post0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pynbody-1.6.0.post0-cp311-cp311-macosx_11_0_arm64.whl (3.3 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pynbody-1.6.0.post0-cp311-cp311-macosx_10_9_x86_64.whl (3.6 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

pynbody-1.6.0.post0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.6 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pynbody-1.6.0.post0-cp310-cp310-macosx_11_0_arm64.whl (3.3 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pynbody-1.6.0.post0-cp310-cp310-macosx_10_9_x86_64.whl (3.6 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pynbody-1.6.0.post0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.6 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pynbody-1.6.0.post0-cp39-cp39-macosx_11_0_arm64.whl (3.3 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pynbody-1.6.0.post0-cp39-cp39-macosx_10_9_x86_64.whl (3.6 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

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