yaw.catalogs.scipy.utils.merge_pairs_patches#
- yaw.catalogs.scipy.utils.merge_pairs_patches(patch_datasets: Iterable[PatchCorrelationData], config: Configuration, n_patches: int, auto: bool) NormalisedCounts | dict[str, NormalisedCounts][source]#
Merge pair counts from patch pairs into a pair count container.
- Parameters:
(obj (patch_datasets) – Iterable[PatchCorrelationData]): An iterable containing pair counts measured from pairs of patches.
config (
yaw.config.Configuration) – The configuration used for the correlation measurement.n_patches (
int) – The total number of patches in both catalogs.auto (
bool) – Whether the pair counts are from an autocorrelation measurement.
- Returns:
A
NormalisedCountsinstance if a single measurement scale is used, otherwise a dictionary of scales.