plima.backends.ccl.builder#
Builder for CCL intrinsic alignment backend objects.
This module provides one public entry point for building PLIMA intrinsic alignment models for CCL.
The PLIMA model registry is the source of truth for model names and aliases.
This builder resolves models through plima.models.model_registry instead
of keeping a second alias registry.
LA and NLA models use native CCL IA bias tuples.
TATT and halo model IA use custom CCL Pk2D spectra.
The forecasting code should branch on the returned mode value instead of
checking model names directly.
Functions
|
Build CCL backend objects for a registered PLIMA IA model. |
Classes
Dictionary returned by the CCL IA builder. |
- plima.backends.ccl.builder.build_ccl_ia_model(cosmo, model_name, z, **kwargs)[source]#
Build CCL backend objects for a registered PLIMA IA model.
- Parameters:
cosmo (Any) – CCL cosmology object. This is used by models that build custom Pk2D spectra. It is accepted for all models so the public API stays stable.
model_name (str) – PLIMA model name or alias.
z (ArrayLike) – Redshift values used by the IA model.
**kwargs (Any) – Model keyword arguments.
- Returns:
Standard CCL IA model dictionary.
- Raises:
ValueError – If the registered model family has no CCL builder.
KeyError – If
model_nameis not registered in PLIMA.
- Return type: