plima.backends.ccl.la#
CCL backend helpers for LA intrinsic alignment bias inputs.
This module connects PLIMA LA amplitude models to the IA bias tuple expected by CCL weak lensing tracers.
CCL weak lensing tracers expect the conventional user facing A_IA(z)
amplitude when use_A_ia=True. CCL then applies the IA normalization and
minus sign internally. Therefore this backend returns the PLIMA amplitude
directly and does not flip its sign.
Functions
|
Return a CCL IA bias tuple for LA. |
- plima.backends.ccl.la.make_ccl_la_ia_bias(z, *, amplitude=None, a_ia=1.0)[source]#
Return a CCL IA bias tuple for LA.
This backend follows the PLIMA user-facing convention that positive
A_IAcorresponds to a positive LA amplitude. The returnedia_biasis the conventionalA_IA(z)tuple expected by CCL whenWeakLensingTracer(..., use_A_ia=True)is used.- Parameters:
z (ArrayLike) – Redshift values where the IA bias should be sampled.
amplitude (ArrayLike | float | None) – Optional precomputed positive LA amplitude evaluated at
z. IfNone, the amplitude is computed fromla_amplitude.a_ia (float) – Positive LA amplitude normalization used when
amplitudeisNone.
- Returns:
Redshift values and conventional CCL
A_IA(z)values sampled on the same grid.- Raises:
ValueError – If redshifts are not finite, redshifts are outside the valid domain, or amplitude cannot be broadcast to match
z.- Return type:
tuple[NDArray[float64], NDArray[float64]]