Exemplo n.º 1
0
def generateMultiCSVRows(logDirRoot):
    res_str = []
    res_str.append(['Log File Name', 'Locator Count Coherence', 'Round Type Set'])
    for lists in os.listdir(logDirRoot):
        if lists.endswith(".log"):
            file_path = os.path.join(logDirRoot,lists)
            R = RoundInstanceFactory(file_path)
            csv_row = [file_path]
            csv_row.extend(R.basicCheck())
            res_str.append(csv_row)
    return res_str
Exemplo n.º 2
0
def generateMultiCSVRows(logDirRoot):
    res_str = []
    res_str.append(
        ['Log File Name', 'Locator Count Coherence', 'Round Type Set'])
    for lists in os.listdir(logDirRoot):
        if lists.endswith(".log"):
            file_path = os.path.join(logDirRoot, lists)
            R = RoundInstanceFactory(file_path)
            csv_row = [file_path]
            csv_row.extend(R.basicCheck())
            res_str.append(csv_row)
    return res_str