set_state
- zdm.loading.set_state(alpha_method=1, cosmo=FlatLambdaCDM(name='Planck18', H0=<Quantity 67.66 km / (Mpc s)>, Om0=0.30966, Tcmb0=<Quantity 2.7255 K>, Neff=3.046, m_nu=<Quantity [0., 0., 0.06] eV>, Ob0=0.04897))[source]
Create a State object with default or best-fit parameters.
Initializes a State with parameters appropriate for FRB z-DM analysis. Parameter values depend on the chosen alpha_method.
- Parameters:
alpha_method (int, optional) – Method for handling spectral index alpha. 0: Spectral index interpretation with k-correction. 1: Rate interpretation with (1+z)^alpha evolution (default).
cosmo (astropy.cosmology.Cosmology, optional) – Astropy cosmology to use. Default is Planck18.
- Returns:
Initialized State object with all parameters set.
- Return type: