Releases: LoganAMorrison/Hazma
Releases · LoganAMorrison/Hazma
v2.0.2
Fix bug in cython numpy int type (int_t
-> int64_t
)
Full Changelog: 1.1...2.0.2
Hazma-1.1
New Features
- Relic densities: Relic densities can be computed for any object which implements
thermal_cross_section(self, x)
and has an attributedmx
. For example:
class ToyModel(object):
def __init__(self, mx, sigmav):
self.mx = mx
self.sigmav = sigmav
def thermal_cross_section(self, x):
"""
Compute the dark matter thermal cross section for a given
ratio of mass to temperature.
Parameters
----------
x: float
DM mass over temperature.
Returns
-------
sigmav: float
Dark matter thermal cross section.
"""
return self.sigmav
model = ToyModel(10.313897683787216e3, 1.966877938634266e-15)
relic_density(model, semi_analytic=True) # 0.12
Bug Fixes
- Fixed bugs in typos in scalar mediator widths
- Fixed bugs in typos in vector mediator widths
- Fixed bugs in typos in scalar mediator cross-sections
- Fixed bugs in typos in vector mediator cross-sections
Closed Issues
Version 1.0.3
Minor bug fixes.
1.0.2
Fixes a bug in the charged pion radiative decay spectrum and improves the tests.
1.0.1
Adds π0-V final state for vector class and streamlines the process of implementing models.
First official release of Hazma
Python package for computing indirect detection constraints on sub-GeV dark matter.