How to use the pyccl.halos.HaloProfileEinasto 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
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)