:py:mod:`halo_utils` ==================== .. py:module:: halo_utils .. autoapi-nested-parse:: This module contains utility functions for parameterizing individual halos. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: halo_utils.get_nfw_kwargs halo_utils.get_concentration .. py:function:: get_nfw_kwargs(halo_mass, stellar_mass, halo_z, z_src, seed) .. py:function:: get_concentration(halo_mass, stellar_mass, m=-0.1, A=3.44, trans_M_ratio=430.49, c_0=3.19, seed=123, add_noise=True) Get the halo concentration from halo and stellar masses using the fit in Childs et al 2018 for all individual halos, both relaxed and unrelaxed Parameters ---------- trans_M_ratio : float or np.array ratio of the transition mass to the stellar mass