push_dims#

ReferenceIndices.push_dims(ref_ranges)[source]#

Add reference ranges, i.e. register new slider dims.

The index of each new dim is initialized to the start of its range, and a slider for it is added to the UI of every NDWidget managed by this ReferenceIndex.

Parameters:

ref_ranges (dict[str, tuple | RangeContinuous | RangeDiscrete]) – Mapping of dim names to range specifications. A 3-tuple (start, stop, step) creates a RangeContinuous, a 1-tuple (options,) creates a RangeDiscrete, and a RangeContinuous or RangeDiscrete instance is used as given. An existing dim of the same name is replaced.