Python package for computing indirect detection constraints on sub-GeV dark matter.
Project description
Hazma is a tool for studying indirect detection of sub-GeV dark. Its main uses are:
- Computing gamma-ray and electron/positron spectra from dark matter annihilations;
- Setting limits on sub-GeV dark matter using existing gamma-ray data;
- Determining the discovery reach of future gamma-ray detectors;
- Deriving accurate CMB constraints.
Hazma comes with several sub-GeV dark matter models, for which it provides functions to compute dark matter annihilation cross sections and mediator decay widths. A variety of low-level tools are provided to make it straightforward to define new models.
Installation
Hazma can be installed from PyPI using:
pip install hazma
Alternatively, you can download Hazma directly from this page, navigate to the package directory using the command line and run
pip install .
or
python setup.py install
Since Hazma utilizes C to rapidly compute gamma ray, electron and positron spectra, you will need to have the cython package installed.
Another way to run Hazma is by using docker. If you have docker installed on your machine, clone the Hazma repository and in the Hazma directory, run:
docker build --rm -t jupyter/hazma .
This will build the docker image called jupyter/hazma
. Then to start a jupyter notebook, run:
docker run -it -p 8888:8888 -v /path/to/hazma/tutorials:/home/jovyan/work --rm --name jupyter jupyter/hazma
This will start a jupyter kernel.
Other information
If you use Hazma in your own research, please cite our paper:
@article{Coogan:2019qpu,
author = "Coogan, Adam and Morrison, Logan and Profumo, Stefano",
title = "{Hazma: A Python Toolkit for Studying Indirect Detection
of Sub-GeV Dark Matter}",
year = "2019",
eprint = "1907.11846",
archivePrefix = "arXiv",
primaryClass = "hep-ph"
}
Logo design: David Reiman and Adam Coogan; icon from Freepik from flaticon.com.
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
Built Distributions
File details
Details for the file hazma-1.0.3.tar.gz
.
File metadata
- Download URL: hazma-1.0.3.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 927cb201613451e57d935abf9af2380e10698b6171e6276eaeae35242dbdeff2 |
|
MD5 | 307d9bc5f74ee9bb46665370c0f33501 |
|
BLAKE2b-256 | 8e67faeec1068abead284e593db94d3bc784c5e5da6ff4c4bd25d63851e1072f |
File details
Details for the file hazma-1.0.3-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: hazma-1.0.3-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c6b4276713da84fd5cbe83bc2dd19e5fd18bb8a1bc15e8fceb5be045bbfa3d3 |
|
MD5 | dae119fff146161e87cf0c53c6db2a3e |
|
BLAKE2b-256 | 26e09132482a2220b6dd194b97680d80ad9bd9b6acc35f595a5b3ebfea8694e5 |
File details
Details for the file hazma-1.0.3-cp37-cp37m-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: hazma-1.0.3-cp37-cp37m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.7m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 876f07c8cce55880bd6bc55664c57c231d86c3f25ac6afcbeada4ea526941f71 |
|
MD5 | ab4673bc5543adb323747d6520d61a18 |
|
BLAKE2b-256 | c55557cf3f0299f9fe907f2f843712a50c439a6c3b879cd4d5cf80313d80238a |
File details
Details for the file hazma-1.0.3-cp36-cp36m-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: hazma-1.0.3-cp36-cp36m-macosx_10_13_x86_64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.6m, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8614d03ce8673b0e46f3718c03c81e4a27c39732c09b53b4725c6a1295f2ba3d |
|
MD5 | fb64ce0792e223825199f74bea4e41f3 |
|
BLAKE2b-256 | 2d824de5a88b0f79b940aba874e6e5d13eb805482cf1f84be117745f12024323 |
File details
Details for the file hazma-1.0.3-cp35-cp35m-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: hazma-1.0.3-cp35-cp35m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.5m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8bf90b2efaa8b548c0378f494bd89f77a1b9d3090ac4be404ed0944dc543cbb |
|
MD5 | ed4d8b6385449e183f5a9cafc5827a04 |
|
BLAKE2b-256 | 1fbe3787f6438b8702c521d7e86052605d76436df42f460cce4c71ab38f9b9e4 |