lstpressure.observable

class lstpressure.observable.Observable(interval: ~lstpressure.lstindex.LSTInterval.LSTInterval, observation: <module 'lstpressure.observation.Observation' from '/home/zach/code/sarao/lst-pressure/lstpressure/observation/Observation.py'>)

Represents a valid scheduling time frame based on observational constraints.

Attributes:

interval (LSTInterval): The time interval or range representing the observation window. observation (Observation): The observational data or constraints defining the validity of the interval.

Args:

interval (LSTInterval): The time interval or range for the observation window. observation (Observation): The observational constraints or data associated with the interval.

property dt: datetime

Returns the date and time of the observation.

Returns:

datetime: The date and time of the observation.

property duration: float

Returns the duration of the observation.

Returns:

float: The duration of the observation in hours.

property id: Any

Returns the identification of the observation.

Returns:

Any: The identification of the observation.

property interval: LSTInterval

Returns the time interval or range representing the observation window.

Returns:

LSTInterval: The time interval or range for the observation.

property observation: <module 'lstpressure.observation.Observation' from '/home/zach/code/sarao/lst-pressure/lstpressure/observation/Observation.py'>

Returns the observational data or constraints defining the validity of the interval.

Returns:

Observation: The observational constraints or data.

property proposal_id: Any

Returns the proposal identification associated with the observation.

Returns:

Any: The proposal identification.

to_tuple()

Converts the Observable instance into a tuple representation.

This method is useful for serializing the object for storage or transmission.

Returns:

Tuple: A tuple containing the essential attributes of the Observable instance.

property utc_constraint: LSTIntervalType

Returns the UTC constraint type of the observation interval.

Returns:

LSTIntervalType: The UTC constraint type of the interval.