New Features
- Relic densities: Relic densities can be computed for any object which implements
thermal_cross_section(self, x)
and has an attributed mx
. 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
- #4 : Adding relic densities
- #1 : Energy less than particles mass in
hazma.rambo