Method

NumCosmoGalaxyShapeFactorprepare_data_array

Declaration [src]

gboolean
nc_galaxy_shape_factor_prepare_data_array (
  NcGalaxyShapeFactor* gsf,
  NcmMSet* mset,
  GPtrArray* data_array,
  gboolean update_radius,
  gboolean update_optzs
)

Description [src]

Prepares the per-galaxy caches used by the integrand: lens geometry (projected radius, tangential-frame rotation of the observed ellipticity and calibration bias) and the reduced-shear optimization cache. Also prepares the population fragments and runs the subclass prepare hook.

Calls nc_galaxy_shape_factor_prepare() (which decides for itself, via its own cached hashes, whether the geometry/profile caches actually need recomputing), then loops over data_array applying nc_galaxy_shape_factor_update_data_radius()/_optzs()/_pop(). update_radius and update_optzs gate whether the radius/optzs steps run in that loop for every data_array entry; the population step always runs.

Parameters

mset

Type: NcmMSet

A NcmMSet.

The data is owned by the caller of the method.
data_array

Type: An array of None

A GPtrArray of NcGalaxyShapeFactorData.

The data is owned by the caller of the method.
update_radius

Type: gboolean

Whether the radius must be updated.

update_optzs

Type: gboolean

Whether optzs must be updated.

Return value

Type: gboolean

TRUE if the caches were prepared.