xpipe.xhandle.parbins.prepare_lenses¶
- xpipe.xhandle.parbins.prepare_lenses(bin_settings=None, params=None, fullpaths=None)[source]¶
Loads lens data and defines sub-selections for different parameter bins
- Parameters
bin_settings (list) – (parameter_edges, N_randoms) can be specified independently from the pipeline settings, default is extracted from
paramsparams (dict) – Pipeline settings in a dictionary format. If
Nonethen the defaultpaths.paramswill be usedfullpaths (dict) – Pipeline file paths in a dictionary format. If
Nonethen the defaultpaths.fullpathswill be used
- Returns
data –
Relevant rows and indexes of the lens sample
- Return type
Notes
If using custom settings, you have to specify both
paramsandfullpaths! Using inconsitent definitions result in aSyntaxError.The format of the output data table:
idcatalog ID of the lensesraRight Ascension of the lensesdecDelination of the lensesqlistnp.array of quantities with shape (n_lens, n_quantity)sindslist of boolean selection indexes for each parameter binfullcatselected rows of the full lens catalogboundsfor each bin parameter bounds written as
plpairsparameter boundaries simple simple list
(just boundaries, not pairs or tuples)