firecrown.metadata.two_point.InferredGalaxyZDist

firecrown.metadata.two_point.InferredGalaxyZDist#

class firecrown.metadata.two_point.InferredGalaxyZDist(*, bin_name, z, dndz, measured_type)[source]#

Bases: YAMLSerializable

The class used to store the redshift resolution data for a sacc file.

The sacc file is a complicated set of tracers (bins) and surveys. This class is used to store the redshift resolution data for a single photometric bin.

Parameters:

Public Methods:

__post_init__()

Validate the redshift resolution data.

__eq__(other)

Equality test for InferredGalaxyZDist.

__hash__()

Return hash(self).

__init__(*, bin_name, z, dndz, measured_type)

param bin_name:

__repr__()

Return repr(self).

__setattr__(name, value)

Implement setattr(self, name, value).

__delattr__(name)

Implement delattr(self, name).

Inherited from YAMLSerializable

to_yaml()

Return the YAML representation of the object.

from_yaml(yaml_str)

Load the object from YAML.


__eq__(other)[source]#

Equality test for InferredGalaxyZDist.

Two InferredGalaxyZDist are equal if they have equal bin_name, z, dndz, and measured_type.

__post_init__()[source]#

Validate the redshift resolution data. :rtype: None

  • Make sure the z and dndz arrays have the same shape;

  • The measured type must be a MeasuredType.

  • The bin_name should not be empty.