@sh.add_function(dsp, outputs=['phases_integration_times'])
def extract_phases_integration_times(times, bag_phases):
"""
Extracts the cycle phases integration times [s] from bag phases vector.
:param times:
Time vector [s].
:type times: numpy.array
:param bag_phases:
Bag phases [-].
:type bag_phases: numpy.array
:return:
Cycle phases integration times [s].
:rtype: tuple
"""
return tuple((times[i], times[j]) for i, j in _extract_indices(bag_phases))