State

class State(state_id, obs_mode)[source]

Bases: object

A logical representation of rows in the STATE table.

Relates STATE_ID (in the MAIN table) to the observing mode(s) and corresponding pipeline intent(s).

Parameters:
  • state_id (int)

  • obs_mode (str)

id

Numerical identifier of this State.

obs_mode

Unique obs_mode values associated with this State.

obs_mode_mapping

Class-level dictionary mapping obs_mode strings to pipeline intent strings.

Attributes Summary

id

intents

Return all intents associated with this State.

obs_mode

obs_mode_mapping

Methods Summary

get_obs_mode_for_intent(intent)

Return list of obs_mode values associated with given intent.

Attributes Documentation

id
intents

Return all intents associated with this State.

obs_mode
obs_mode_mapping = {}

Methods Documentation

get_obs_mode_for_intent(intent)[source]

Return list of obs_mode values associated with given intent.

Parameters:

intent (str)

Return type:

list[str]