set_cosmology

zdm.cosmology.set_cosmology(params)[source]

Set the global cosmology parameters for this module.

This function must be called before using distance measure functions if non-default cosmology is desired.

Parameters:

params (dict or State) – Parameter dictionary or State object containing ‘cosmo’ key with CosmoParams object specifying H0, Omega_m, Omega_lambda, Omega_k.