VisitSystem#

class lsst.obs.base.VisitSystem(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: Enum

Enumeration used to label different visit systems.

Attributes Summary

BY_GROUP_METADATA

Visit membership is defined by the value of the group dimension or, for older dimension universes, exposure.group_id.

BY_SEQ_START_END

Visit membership is defined by the values of the exposure.day_obs, exposure.seq_start, and exposure.seq_end values.

ONE_TO_ONE

Each exposure is assigned to its own visit.

Methods Summary

all()

Return a frozenset containing all members.

from_name(external_name)

Construct the enumeration from given name.

from_names(names)

Return a frozenset of all the visit systems matching the supplied names.

Attributes Documentation

BY_GROUP_METADATA = 1#

Visit membership is defined by the value of the group dimension or, for older dimension universes, exposure.group_id.

BY_SEQ_START_END = 2#

Visit membership is defined by the values of the exposure.day_obs, exposure.seq_start, and exposure.seq_end values.

ONE_TO_ONE = 0#

Each exposure is assigned to its own visit.

Methods Documentation

classmethod all() frozenset[VisitSystem]#

Return a frozenset containing all members.

classmethod from_name(external_name: str) VisitSystem#

Construct the enumeration from given name.

classmethod from_names(names: Iterable[str] | None) frozenset[VisitSystem]#

Return a frozenset of all the visit systems matching the supplied names.

Parameters#

namesiterable of str, or None

Names of visit systems. Case insensitive. If None or empty, all the visit systems are returned.

Returns#

systemsfrozenset of VisitSystem

The matching visit systems.