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.

The LA amplitude model lives in plima.models.la. This file only prepares the (z, ia_bias) tuple used by CCL.

Functions

make_ccl_la_ia_bias(z, *[, amplitude, a_ia])

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.

Parameters:
  • z (ArrayLike) – Redshift values where the IA bias should be sampled.

  • amplitude (ArrayLike | float | None) – Optional precomputed LA amplitude evaluated at z. If None, the amplitude is computed from la_amplitude.

  • a_ia (float) – LA amplitude normalization used when amplitude is None.

Returns:

Redshift values and IA bias 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[tuple[Any, …], dtype[float64]], ndarray[tuple[Any, …], dtype[float64]]]