pipeline.domain.observingrun.sort_measurement_set

sort_measurement_set(ms: MeasurementSet) tuple[int, datetime][source]

Return sort key for measurement set object.

Sort key consists of data priority and observation start time. Data priority is determined from the data types of given measurement set. Sort order of the data types is defined in DATA_TYPE_PRIORITY list. If no DataType is set to the MS, the lowest priority is assigned to the MS.

Returns:

Data priority and observation start time