How to use the pyccl.physical_constants.RHO_CRITICAL function in pyccl

To help you get started, we’ve selected a few pyccl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LSSTDESC / CLMM / clmm / modbackend / ccl.py View on Github external
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