Skip to main content

Python package for computing indirect detection constraints on sub-GeV dark matter.

Project description

CircleCI Documentation Status DOI arXiv

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

hazma-1.1.tar.gz (1.6 MB view details)

Uploaded Source

Built Distributions

hazma-1.1-cp37-cp37m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.7m Windows x86-64

hazma-1.1-cp37-cp37m-macosx_10_14_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

hazma-1.1-cp36-cp36m-macosx_10_13_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

File details

Details for the file hazma-1.1.tar.gz.

File metadata

  • Download URL: hazma-1.1.tar.gz
  • Upload date:
  • Size: 1.6 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

Hashes for hazma-1.1.tar.gz
Algorithm Hash digest
SHA256 12d2c19eeb83b51394a8916c7026b0cedf60443fa1077ceff39af182a519d911
MD5 303cc309fce31dc6f1b43b1cdd338327
BLAKE2b-256 d023e6d8fc182a97bd4fe4740093620d97a2fc3736779bd87d677834f4643c46

See more details on using hashes here.

File details

Details for the file hazma-1.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: hazma-1.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.2 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

Hashes for hazma-1.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 68256c8688221e026b0cc9e893cf471f9746c935c8c8d85940caa0494db76bef
MD5 a5b556f6456c5ccf6ffa65a09d8c682d
BLAKE2b-256 1fce521ccb30deefaa41761c358720eb4005490737b6d364f65d258ee7d01c08

See more details on using hashes here.

File details

Details for the file hazma-1.1-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: hazma-1.1-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 2.4 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

Hashes for hazma-1.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b615f58e2090e4163e09f9e96df833db11142871ea49ce6752b1687ef4da0367
MD5 a6e47549d546b93aa3cb636031c2265e
BLAKE2b-256 e7db5be5392cf816d0dfed6206da9b20de37ec777e9a32039976e077b53e53a3

See more details on using hashes here.

File details

Details for the file hazma-1.1-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: hazma-1.1-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 2.4 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

Hashes for hazma-1.1-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 bef6c6650215a287008033ba9141a518d7237ff5ed9fa68a8cd4e91cfeb386a5
MD5 07db9f4f7aade6fb41180a0beafe15e1
BLAKE2b-256 43b8e89e5ab8246ca7094b19181090212313c47a3d5e34e893e3098bfc7eeade

See more details on using hashes here.

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