topsim.core.instrument.Observation

class topsim.core.instrument.Observation(name, start, duration, demand, workflow, data_rate, timestep='seconds', min_resources=-1, max_resources=-1)[source]

Observation object stores information about a given observation; the object also stores information about the workflow, and the generated plan for that workflow.

Parameters:
  • name (str) – Observation name

  • start (int) – Expected start-time of the observation

  • duration (int) – Expected Duration of the observation

  • demand (int) – Expected Telescope demand of (Number of arrays used) during observation

  • workflow (str) – Path to the workflow specification (JSON file)

  • type (str) – What type of observation (Continuum, Spectral, etc.)

  • ingest_data_rate (int) – Expected incoming data rate produced by the observation (GB/s)

  • total_data_size (int) – Total size of the data produced by the observation. This is updated every simulation time step based on the duration of the observation and ingest_data_rate

  • plan (WorkflowPlan object) – Workflow pre-schedule generated by the Planner once observation has been started on Telescope.

Methods

__init__(name, start, duration, demand, ...)

is_finished(current_time, telescope_status)

Check if the observation has finished on the telescope.

is_ready(current_time, capacity)