firecrown.metadata.two_point.GalaxyMeasuredType#

class firecrown.metadata.two_point.GalaxyMeasuredType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: YAMLSerializable, str, Enum

This enumeration type for galaxy measurements.

It provides identifiers for the different types of galaxy-related types of measurement.

SACC has some notion of supporting other types, but incomplete implementation. When support for more types is added to SACC this enumeration needs to be updated.

Public Methods:

sacc_type_name()

Return the lower-case form of the main measurement type.

sacc_measurement_name()

Return the lower-case form of the specific measurement type.

polarization()

Return the SACC polarization code.

__lt__(other)

Define a comparison function for the GalaxyMeasuredType enumeration.

__eq__(other)

Define an equality test for GalaxyMeasuredType enumeration.

__ne__(other)

Negation of __eq__.

__hash__()

Define a hash function that uses both type and value information.

__repr__()

Return repr(self).

__str__()

Return str(self).

__format__(format_spec)

Default object formatter.

__new__(value)

Inherited from YAMLSerializable

to_yaml()

Return the YAML representation of the object.

from_yaml(yaml_str)

Load the object from YAML.

Inherited from str

__repr__()

Return repr(self).

__hash__()

Return hash(self).

__str__()

Return str(self).

__getattribute__(name, /)

Return getattr(self, name).

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

__iter__()

Implement iter(self).

__mod__(value, /)

Return self%value.

__rmod__(value, /)

Return value%self.

__len__()

Return len(self).

__getitem__(key, /)

Return self[key].

__add__(value, /)

Return self+value.

__mul__(value, /)

Return self*value.

__rmul__(value, /)

Return value*self.

__contains__(key, /)

Return bool(key in self).

encode([encoding, errors])

Encode the string using the codec registered for encoding.

replace(old, new[, count])

Return a copy with all occurrences of substring old replaced by new.

split([sep, maxsplit])

Return a list of the substrings in the string, using sep as the separator string.

rsplit([sep, maxsplit])

Return a list of the substrings in the string, using sep as the separator string.

join(iterable, /)

Concatenate any number of strings.

capitalize()

Return a capitalized version of the string.

casefold()

Return a version of the string suitable for caseless comparisons.

title()

Return a version of the string where each word is titlecased.

center(width[, fillchar])

Return a centered string of length width.

count(sub[, start[, end]])

Return the number of non-overlapping occurrences of substring sub in string S[start:end].

expandtabs([tabsize])

Return a copy where all tab characters are expanded using spaces.

find(sub[, start[, end]])

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].

partition(sep, /)

Partition the string into three parts using the given separator.

index(sub[, start[, end]])

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].

ljust(width[, fillchar])

Return a left-justified string of length width.

lower()

Return a copy of the string converted to lowercase.

lstrip([chars])

Return a copy of the string with leading whitespace removed.

rfind(sub[, start[, end]])

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].

rindex(sub[, start[, end]])

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].

rjust(width[, fillchar])

Return a right-justified string of length width.

rstrip([chars])

Return a copy of the string with trailing whitespace removed.

rpartition(sep, /)

Partition the string into three parts using the given separator.

splitlines([keepends])

Return a list of the lines in the string, breaking at line boundaries.

strip([chars])

Return a copy of the string with leading and trailing whitespace removed.

swapcase()

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)

Replace each character in the string using the given translation table.

upper()

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]])

Return True if S starts with the specified prefix, False otherwise.

endswith(suffix[, start[, end]])

Return True if S ends with the specified suffix, False otherwise.

removeprefix(prefix, /)

Return a str with the given prefix string removed if present.

removesuffix(suffix, /)

Return a str with the given suffix string removed if present.

isascii()

Return True if all characters in the string are ASCII, False otherwise.

islower()

Return True if the string is a lowercase string, False otherwise.

isupper()

Return True if the string is an uppercase string, False otherwise.

istitle()

Return True if the string is a title-cased string, False otherwise.

isspace()

Return True if the string is a whitespace string, False otherwise.

isdecimal()

Return True if the string is a decimal string, False otherwise.

isdigit()

Return True if the string is a digit string, False otherwise.

isnumeric()

Return True if the string is a numeric string, False otherwise.

isalpha()

Return True if the string is an alphabetic string, False otherwise.

isalnum()

Return True if the string is an alpha-numeric string, False otherwise.

isidentifier()

Return True if the string is a valid Python identifier, False otherwise.

isprintable()

Return True if the string is printable, False otherwise.

zfill(width, /)

Pad a numeric string with zeros on the left, to fill a field of the given width.

format(*args, **kwargs)

Return a formatted version of S, using substitutions from args and kwargs.

format_map(mapping)

Return a formatted version of S, using substitutions from mapping.

__format__(format_spec, /)

Return a formatted version of the string as described by format_spec.

maketrans

Return a translation table usable for str.translate().

__sizeof__()

Return the size of the string in memory, in bytes.

__getnewargs__

Inherited from Enum

__signature__()

__new__(cls, value)

__init__(*args, **kwds)

__repr__()

Return repr(self).

__str__()

Return str(self).

__dir__()

Returns public methods and other interesting attributes.

__format__(format_spec)

Default object formatter.

__hash__()

Return hash(self).

__reduce_ex__(proto)

Helper for pickle.

__deepcopy__(memo)

__copy__()

Private Methods:

_generate_next_value_(name, start, count, ...)

Generate the next value when not given.

_value_repr_()

Return repr(self).

Inherited from Enum

_generate_next_value_(name, start, count, ...)

Generate the next value when not given.

_missing_(value)

_new_member_(value)

Create and return a new object.


__eq__(other)[source]#

Define an equality test for GalaxyMeasuredType enumeration.

__hash__()[source]#

Define a hash function that uses both type and value information.

Return type:

int

__lt__(other)[source]#

Define a comparison function for the GalaxyMeasuredType enumeration.

__ne__(other)[source]#

Negation of __eq__.

static _generate_next_value_(name, start, count, last_values)#

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_values: the list of values assigned

_member_type_#

alias of str

_new_member_(**kwargs)#

Create and return a new object. See help(type) for accurate signature.

_value_repr_()#

Return repr(self).

polarization()[source]#

Return the SACC polarization code.

This is the third part of the SACC string used to denote the specific measurement type.

Return type:

str

sacc_measurement_name()[source]#

Return the lower-case form of the specific measurement type.

This is the second part of the SACC string used to denote the specific measurement type.

Return type:

str

sacc_type_name()[source]#

Return the lower-case form of the main measurement type.

This is the first part of the SACC string used to denote a correlation between measurements of this type.

Return type:

str