plima.backends.ccl.nla#
CCL backend helpers for NLA intrinsic alignment bias inputs.
This module connects PLIMA NLA amplitude models to the IA bias tuple expected by CCL weak lensing tracers.
The NLA amplitude model lives in plima.models.nla. This file only prepares
the (z, ia_bias) tuple used by CCL.
Functions
|
Return a CCL IA bias tuple for NLA. |
- plima.backends.ccl.nla.make_ccl_nla_ia_bias(z, *, amplitude=None, a_ia=1.0)[source]#
Return a CCL IA bias tuple for NLA.
- Parameters:
z (ArrayLike) – Redshift values where the IA bias should be sampled.
amplitude (ArrayLike | float | None) – Optional precomputed NLA amplitude evaluated at
z. IfNone, the amplitude is computed fromnla_amplitude.a_ia (float) – NLA amplitude normalization used when
amplitudeisNone.
- 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]]]