firecrown.models.cluster.abundance_data.AbundanceData#

class firecrown.models.cluster.abundance_data.AbundanceData(sacc_data)[source]#

Bases: object

The class used to wrap a sacc file and return the cluster abundance data.

The sacc file is a complicated set of tracers (bins) and surveys. This class manipulates that data and returns only the data relevant for the cluster number count statistic. The data in this class is specific to a single survey name.

Parameters:

sacc_data (Sacc) –

Public Methods:

__init__(sacc_data)

param sacc_data:

get_survey_tracer(survey_nm)

Returns the SurveyTracer for the specified survey name.

get_observed_data_and_indices_by_survey(...)

Returns the observed data for the specified survey and properties.

get_bin_edges(survey_nm, properties)

Returns the limits for all z, mass bins for the requested data type.

Private Methods:

_all_bin_combinations_for_data_type(data_type)

param data_type:


get_bin_edges(survey_nm, properties)[source]#

Returns the limits for all z, mass bins for the requested data type.

Parameters:
Return type:

list[SaccBin]

get_observed_data_and_indices_by_survey(survey_nm, properties)[source]#

Returns the observed data for the specified survey and properties.

For example if the caller has enabled COUNTS then the observed cluster counts within each N dimensional bin will be returned.

Parameters:
Return type:

tuple[list[float], list[int]]

get_survey_tracer(survey_nm)[source]#

Returns the SurveyTracer for the specified survey name.

Parameters:

survey_nm (str) –

Return type:

SurveyTracer