snapAnalysis
An N-body simulation snapshot analysis package. snapAnalysis is designed specifically for working with idealized simulations of at most a few galaxies, rather than cosmological simulations. Currently, it supports any GADGET-format snapshots stored in the hdf5 format, though compatibility with older GADGET binary files is planned for the future. snapAnalysis can also handle fuzzy dark matter snapshots generated by Arepo's BECDM module.
snapAnalysis supports many common workflows for handling snapshots, including particle loading, particle filtering, centering, rotations, coordinate transformations, galaxy shape analysis, particle orbit extraction, galaxy center-of-mass orbit extraction, and more. Also included are a few basic visualization functions for plotting density and potential fields, density and anisotropy profiles, and more. Units are detected automatically from snapshot headers and handled using astropy's units module.
snapAnalysis is still under active development, and may still be missing planned functionality.
Installation
- I recommend installing
snapAnalysisinside a virtual environment. If you already have one set up, activate it before cloning this repo. Otherwise, create a virtual environment with
python -m venv --system-site-packages </path/to/virtual/env>
then activate it
source </path/to/virtual/env>/bin/activate
and upgrade pip if needed
pip install --upgrade pip
With pip via PyPI
pip install snapanalysis
From Source
NOTE: If you intend to develop/contribute to snapAnalysis, please use the development install instructions.
- Clone this repository:
git clone https://github.com/hfoote/snapAnalysis.git
- Install with pip:
cd snapAnalysis
python -m pip install .
Tutorials
Tutorial notebooks are available in the tutorials folder. I also encourage you to look through the test suite for further examples of how to use snapAnalysis.
Documentation
Our documentation is hosted on ReadTheDocs here: [https://snapanalysis.readthedocs.io/en/latest/]
Issues and Contributing
Please see the contribution guidelines.
Acknowledgement
If you use snapAnalysis as part of a published work, we request that you include the URL of this repository (https://github.com/hfoote/snapAnalysis) as a footnote upon the first mention of snapAnalysis in the text, and/or as part of your software acknowledgements.
Metadata
Release files for snapanalysis 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| snapanalysis-0.1.1.tar.gz | 14.4 kB | Without provenance | Details for snapanalysis-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snapanalysis-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for snapanalysis-0.1.1-py3-none-any.whl |
Total release size: 31.5 kB
Release files / snapanalysis-0.1.1.tar.gz
| Download URL | snapanalysis-0.1.1.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
555f6d2b94256eb6de713548bf1af73e510a8b2d7627caf0ce17ba4c422bba71
|
|
BLAKE2b-256 checksum How to use checksums |
20841a0942a4c2d3ee4bb94569540d822d94875d67b0ab638e6a3a7d7b790785
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / snapanalysis-0.1.1-py3-none-any.whl
| Download URL | snapanalysis-0.1.1-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
201eeb0ed886c723fa06c8656f41cc26b70f789e9f63b3ae0c6db946fed481b7
|
|
BLAKE2b-256 checksum How to use checksums |
3c49752fff6a0fe39cb717c20b88769bb6baebf9db9bd8fae7262bbe35aaa114
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for snapanalysis 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.