xpipe.xhandle.parbins.prepare_random¶
- xpipe.xhandle.parbins.prepare_random(bin_settings=None, params=None, fullpaths=None)[source]¶
Loads random points 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:
idmock ID of the random pointsraRight Ascension of the random pointsdecDelination of the random pointsqlistnp.array of mock quantities with shape (n_lens, n_quantity). This refers to the mock quantities assigned to the randoms points,wweight of the random pointssindslist 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)