コード例 #1
0
ファイル: mapit.py プロジェクト: dongwooc/imapper2
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
コード例 #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
コード例 #3
0
ファイル: mapit.py プロジェクト: tonyyli/imapper2
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