expand_calstate

expand_calstate(calstate)[source]

Convert an IntervalCalState into the equivalent consolidated list of (CalToArgs, [CalFrom..]) 2-tuples.

This function is the top-level entry point for converting a calibration state to 2-tuples. It consolidates data selections and converts numeric data selection IDs to friendly equivalents through downstream processing,

Parameters:

calstate (IntervalCalState) -- The IntervalCalState to convert.

Returns:

A list of (CalToArgs, [CalFrom..]) tuples.

Return type:

list[tuple[CalToArgs, list[CalFrom]]]