firecrown.likelihood.source_factories
Factory functions for creating sources.
Functions
|
Apply the factory to the inferred galaxy redshift distribution. |
|
Apply the factory to create a source from metadata only. |
Module Contents
- firecrown.likelihood.source_factories.use_source_factory(inferred_galaxy_zdist, measurement, wl_factory=None, nc_factory=None)[source]
Apply the factory to the inferred galaxy redshift distribution.
- Parameters:
inferred_galaxy_zdist (firecrown.metadata_types.InferredGalaxyZDist)
measurement (firecrown.metadata_types.Measurement)
wl_factory (firecrown.likelihood.weak_lensing.WeakLensingFactory | None)
nc_factory (firecrown.likelihood.number_counts.NumberCountsFactory | None)
- Return type:
firecrown.likelihood.weak_lensing.WeakLensing | firecrown.likelihood.number_counts.NumberCounts
- firecrown.likelihood.source_factories.use_source_factory_metadata_index(sacc_tracer, measurement, wl_factory=None, nc_factory=None)[source]
Apply the factory to create a source from metadata only.
- Parameters:
sacc_tracer (str)
measurement (firecrown.metadata_types.Measurement)
wl_factory (firecrown.likelihood.weak_lensing.WeakLensingFactory | None)
nc_factory (firecrown.likelihood.number_counts.NumberCountsFactory | None)
- Return type:
firecrown.likelihood.weak_lensing.WeakLensing | firecrown.likelihood.number_counts.NumberCounts