Example #1
0
def get_halos(params):
    """Returns HaloList object
    """
    lc_path = params['io']['lightcone_path']
    cosmo   = params['cosmo']
    with_rsd = params['enable_rsd']

    halos = fn.load_halos(lc_path, cosmo, with_rsd)
    return halos
Example #2
0
def get_halos(params):
    """Returns HaloList object
    """
    lc_path = params['io']['lightcone_path']
    cosmo = params['cosmo']
    with_rsd = params['enable_rsd']

    halos = fn.load_halos(lc_path, cosmo, with_rsd)
    return halos
Example #3
0
def get_halos(params, lc_path=None):
    """Returns HaloList object
    """

    # If specific file is not specified, use the first (or only) file given in params
    if lc_path is None:
        lc_path = params['io']['lightcone_path'][0]
    
    cosmo   = params['cosmo']
    with_rsd = params['enable_rsd']

    halos = fn.load_halos(lc_path, cosmo, with_rsd)
    return halos