weldx.transformations.CoordinateSystemManager.time_union

CoordinateSystemManager.time_union(list_of_edges=None)

Get the time union of all or selected local coordinate systems.

If neither the CoordinateSystemManager nor its attached LocalCoordinateSystem instances possess a reference time, the function returns a pandas.TimedeltaIndex. Otherwise, a pandas.DatetimeIndex is returned. The following table gives an overview of all possible reference time combinations and the corresponding return type:

CSM reference time

LCS reference times

Return type

True

all/mixed/none

pandas.DatetimeIndex

False

all

pandas.DatetimeIndex

False

none

pandas.TimedeltaIndex

Parameters

list_of_edges (Optional[List]) – If not None, the union is only calculated from the specified edges.

Returns

Time union

Return type

pandas.DatetimeIndex or pandas.TimedeltaIndex