src/analyzeScenario.py
def takeInCanInfo(filename: str) -> list:
    """
    Take in CAN information from scenario file

    Parameters
    ----------
        filename: str
            full path of scenario file
    Returns
    ----------
        lst_can: list
            demension 1: keywords
                0: id for send, 1: id for response 2: message of dtc read
                3: message of dtc clear, 4: message of additional request
                5,6,7: reservation
            demension 2: value
                0: keywords, 1: value
    """
    snHeader = 0
    snIndexCol = None
    snSname = 'can'
    df_can = pd.read_excel(filename,header=snHeader,index_col=snIndexCol,sheet_name=snSname)
    lst_can = df_can.fillna('').values.tolist()
    return lst_can

    Take in CAN information from scenario file

    Parameters
    ----------
        filename: str
            full path of scenario file
    Returns
    ----------
        lst_can: list
            demension 1: keywords
                0: id for send, 1: id for response 2: message of dtc read
                3: message of dtc clear, 4: message of additional request
                5,6,7: reservation
            demension 2: value
                0: keywords, 1: value
    
Take in CAN information from scenario file
Parameters

str
full path of scenario file
Returns


Take in CAN information from scenario file Parameters str full path of scenario file Returns
def takeInCanInfo(filename: str) -> list:
    snHeader = 0
    snIndexCol = None
    snSname = 'can'
    df_can = pd.read_excel(filename,header=snHeader,index_col=snIndexCol,sheet_name=snSname)
    lst_can = df_can.fillna('').values.tolist()
    return lst_can
def takeInCanInfo ( filename : str ) -> list : snHeader = 0 snIndexCol = None snSname = 'can' df_can = pd . read_excel ( filename , header = snHeader , index_col = snIndexCol , sheet_name = snSname ) lst_can = df_can . fillna ( '' ) . values . tolist ( ) return lst_can
Take in CAN information from scenario file
Parameters
Take in CAN information from scenario file Parameters
"""
    Take in CAN information from scenario file

    Parameters
    ----------
        filename: str
            full path of scenario file
    Returns
    ----------
        lst_can: list
            demension 1: keywords
                0: id for send, 1: id for response 2: message of dtc read
                3: message of dtc clear, 4: message of additional request
                5,6,7: reservation
            demension 2: value
                0: keywords, 1: value
    """
filename
str