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
params
params (dict) – Pipeline settings in a dictionary format. If
None
then the defaultpaths.params
will be usedfullpaths (dict) – Pipeline file paths in a dictionary format. If
None
then the defaultpaths.fullpaths
will be used
- Returns
data –
Relevant rows and indexes of the lens sample
- Return type
Notes
If using custom settings, you have to specify both
params
andfullpaths
! Using inconsitent definitions result in aSyntaxError
.The format of the output data table:
id
catalog ID of the lensesra
Right Ascension of the lensesdec
Delination of the lensesqlist
np.array of quantities with shape (n_lens, n_quantity)sinds
list of boolean selection indexes for each parameter binfullcat
selected rows of the full lens catalogbounds
for each bin parameter bounds written asplpairs
parameter boundaries simple simple list
(just boundaries, not pairs or tuples)