Skip to main content

BANG

BAyesian decomposiotioN of Galaxies

BANG is a GPU/CPU-python code for modelling both the photometry and kinematics of galaxies. The underlying model is the superposition of different component the user has 3 possible combination:

  • Bulge + inner disc + outer disc + Halo
  • Bulge + disc + Halo
  • inner disc + outer disc + Halo

For any detail about the model construction see Rigamonti et al. 2022.

The parameter estimation is done with a python implementation CPnest of nested sampling algorithm.

We strongly suggest to run BANG on GPU. CPU parameter estimation can take days. A fast CPU implementation will be available in a future release of the code.

All the function needed by the user are well documented. In order to run BANG on your galaxy open the example.py script from the BANG/src/BANG or BANG/test directories and follow the instructions.

Once your data have been correctly prepared and the config.yaml file has been created, running BANG requires few lines of code.

For any problem or suggestion feel free to contact the authors at:

        frigamonti@uninsubria.it

For installing BANG you can follow these instructions:

1- Download the BANG package from github. You can simply type from your terminal: git clone https://github.com/FabioRigamonti/BANG.git

2- Instal the python modules with: pip install BANGal

3- Copy the files: setup_easy.pyx utils_easy.pyx dehnen/ From the github repo (you can find them in BANG/src/BANG) to the directory where pip has installed BANG. You can find this directory by opening a python shell importing BANG and printing BANG.

4- Move to the directory where pip has installed BANG and run the following command: python setup_easy.py build_ext --inplace

Metadata

Release files for BANGal 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BANGal 0.0.2
File Size Uploaded Provenance Actions
BANGal-0.0.2.tar.gz 425.9 kB Without provenance Details for BANGal-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for BANGal 0.0.2
File Interpreter ABI Platform Actions
BANGal-0.0.2-py3-none-any.whl Python 3 none any Details for BANGal-0.0.2-py3-none-any.whl

Total release size: 518.1 kB

Release files / BANGal-0.0.2.tar.gz

Download URL BANGal-0.0.2.tar.gz
Size 425.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d8ae149f601e2cb7b02666c0fb3168841bb250ed1aea1f84a41d94b2825ed3e6
BLAKE2b-256 checksum
How to use checksums
52f1489517aa535310e940b7aab30e501302cda397c76d8cf7b3bfa36beb7a6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.5

Release files / BANGal-0.0.2-py3-none-any.whl

Download URL BANGal-0.0.2-py3-none-any.whl
Size 92.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c31b37678dab57c7642db0174c6a7ca7c7ff36130ff852e6dd2ffd8b5fc88651
BLAKE2b-256 checksum
How to use checksums
80ae816d8d7148268f5bdb9de4c5a947af80acba4e29aa79e24a892b5be11911
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.5

Security for BANGal 0.0.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page