Models

class tom_observations.models.ObservationRecord(*args, **kwargs)

Class representing an observation in a TOM.

A ObservationRecord corresponds with any set of related exposures at a facility, and is associated with a single target.

Parameters
  • target (Target) – The Target with which this object is associated.

  • facility (str) – The facility at which this observation is taken. Should be the name specified in the corresponding TOM facility module, if one exists.

  • parameters (str) – The set of parameters used in the API request made to create the observation, usually stored as JSON.

  • status (str) – The current status of the observation. Should be a valid status in the corresponding TOM facility module, if one exists.

  • scheduled_start (datetime) – The time at which the observation is scheduled to begin, according to the facility.

  • scheduled_end (datetime) – The time at which the observation is scheduled to end, according to the facility.

  • created (datetime) – The time at which this object was created.

  • modified (datetime) – The time at which this object was last updated.