Sovereign 8s.is mirror of standardgalactic/pynbody
  • Python 92.3%
  • C++ 4.8%
  • Cython 2.5%
  • C 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andrew Pontzen 722c730433
Some checks failed
Build and Test / fetch-testdata (push) Has been cancelled
Build and Test / build (2.0.2, ubuntu-latest, 3.11) (push) Has been cancelled
Build and Test / build (2.0.2, ubuntu-latest, 3.12) (push) Has been cancelled
Build and Test / build (2.0.2, windows-2025, 3.11) (push) Has been cancelled
Build and Test / build (2.0.2, windows-2025, 3.12) (push) Has been cancelled
Build and Test / build (2.3.3, ubuntu-latest, 3.11) (push) Has been cancelled
Build and Test / build (2.3.3, ubuntu-latest, 3.12) (push) Has been cancelled
Build and Test / build (2.3.3, ubuntu-latest, 3.13) (push) Has been cancelled
Build and Test / build (2.3.3, ubuntu-latest, 3.14) (push) Has been cancelled
Build and Test / build (2.3.3, windows-2025, 3.11) (push) Has been cancelled
Build and Test / build (2.3.3, windows-2025, 3.12) (push) Has been cancelled
Build and Test / build (2.3.3, windows-2025, 3.13) (push) Has been cancelled
Build and Test / build (2.3.3, windows-2025, 3.14) (push) Has been cancelled
Build and Test / fetch-testdata-1 (push) Has been cancelled
Merge pull request #988 from pynbody/pypi-macos
Fix issue with MacOS target
2026-04-11 22:08:03 +01:00
.devcontainer Fix devcontainer.json 2024-04-07 10:05:58 +01:00
.github Fix version of camb to one with wheel for macos-x86_64 2026-04-10 22:40:06 +01:00
docs Try removing unneeded extraneous info on getting tutorial datasets 2025-11-19 16:00:08 +00:00
pynbody Bump version to 2.4.2 2026-04-10 13:59:10 +01:00
tests Fix issue with loading larger grafic files 2026-04-10 12:51:51 +01:00
.gitignore Update .gitignore to exclude build artifacts 2025-11-17 22:37:50 +00:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate 2026-02-23 16:38:52 +00:00
.readthedocs.yaml Move test/tutorial files to OSF 2025-11-18 20:54:02 +00:00
CODE_OF_CONDUCT.md Automatic linting 2022-03-24 09:35:42 +00:00
compose.yaml Make particle ordering within KDTree a numpy array 2024-02-14 13:48:32 +00:00
Dockerfile Improve remote dev configuration 2024-04-07 10:04:03 +01:00
MANIFEST.in Fix source code distribution issue #850 2024-10-21 15:28:43 +01:00
pyproject.toml Add missing package as instructed by cibuildwheel 2025-11-20 16:49:30 +00:00
README.md Update docs to reflect availability of Windows wheels 2025-06-23 20:54:01 +01:00
setup.py Fix mismatches in architecture of github runners 2025-11-20 22:40:46 +00:00

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. Python version support adheres roughly to SPEC0.

Documentation

The documentation is at readthedocs. To get a first sense of what pynbody can do, try the quick-start tutorial or images tutorial.

Getting started

Binary wheels are provided for Linux, MacOS and, from version 2.2, Windows.

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.

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 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.