def FindExcite(oData):
    iTestExcite = np.where(oData['exciteEngage'], oData['testID'], ((- 1) * np.ones_like(oData['testID'])))
    iRange = np.where((iTestExcite[:(- 1)] != iTestExcite[1:]))[0]
    iStartList = iRange[0::2]
    iEndList = iRange[1::2]
    excList = []
    for iExc in range(0, len(iStartList)):
        iStart = iStartList[iExc]
        iEnd = iEndList[iExc]
        timeRange_us = [int(oData['time_us'][iStart]), int(oData['time_us'][iEnd])]
        testID = oData['testID'][iStart]
        exc = (testID, timeRange_us)
        excList.append(exc)
    return excList
def FindExcite(oData):
    iTestExcite = np.where(oData['exciteEngage'], oData['testID'], ((- 1) * np.ones_like(oData['testID'])))
    iRange = np.where((iTestExcite[:(- 1)] != iTestExcite[1:]))[0]
    iStartList = iRange[0::2]
    iEndList = iRange[1::2]
    excList = []
    for iExc in range(0, len(iStartList)):
        iStart = iStartList[iExc]
        iEnd = iEndList[iExc]
        timeRange_us = [int(oData['time_us'][iStart]), int(oData['time_us'][iEnd])]
        testID = oData['testID'][iStart]
        exc = (testID, timeRange_us)
        excList.append(exc)
    return excList