sp_validation.correlation

Layout-independent full-sample means with patched covariance measurements.

_measurement_configs(config)[source]

Return the explicit means settings and default-tolerance patched settings.

measurement_matches(path, config)[source]

Whether a cache records the current means and patched configurations.

write_measurement_metadata(path, config)[source]

Record both TreeCorr configurations beside a cached product.

_unpatched_catalog(cat)[source]

The same positions, shears and weights, with no spatial partition.

measure_with_patches(measure, catalogs, config, means=None)[source]

Return means and a patched measurement with distinct TreeCorr settings.

measure(catalogs, config) must return a fresh measurement of the supplied catalogue mapping. config describes the means pass, including its explicit bin_slop. The patched pass omits bin_slop so TreeCorr uses its standard default. A cached means can be reused for repeated covariance draws of the same catalogue. With no patches, one means-config measurement supplies both products.

process_gg(config, cat1, cat2=None)[source]

Measure GG means with config and patched resampling at TreeCorr’s default.

The shared two-pass mechanism omits bin_slop only from the patched configuration. Covariance estimates, including joint and derived-statistic jackknives, retain TreeCorr’s per-patch results. Published pair counts, weights, separations and complex correlations come from the means pass.