Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__ (self, massdef = 'mean', delta_mdef = 200, halo_profile_model = 'nfw', z_max = 5.0):
self.mdef_dict = {'mean': 'matter',
'critial': 'critical',
'virial': 'critical'}
self.hdpm_dict = {'nfw': ccl.halos.HaloProfileNFW,
'einasto': ccl.halos.HaloProfileEinasto,
'hernquist': ccl.halos.HaloProfileHernquist}
self.hdpm_opts = {'nfw': {'truncated': False,
'projected_analytic': True,
'cumul2d_analytic': True},
'einasto': {},
'hernquist': {}}
self.halo_profile_model = ''
self.massdef = ''
self.delta_mdef = 0
self.hdpm = None
self.MDelta = 0.0
self.set_cosmo_params_dict ({})
self.set_halo_density_profile (halo_profile_model, massdef, delta_mdef)
self.cor_factor = 2.77533742639e+11 * _patch_comoving_coord_cluster_toolkit_rho_m (1.0, 0.0) / ccl.physical_constants.RHO_CRITICAL