Loading scripts/pyivastest/IvasModeAnalyzer.py +17 −14 Original line number Diff line number Diff line Loading @@ -1224,6 +1224,7 @@ class IvasModeAnalyzer(IvasModeCollector): columns.append(LIMITER_RESULTS[lim_key]["keyword"]) tbl_hdr = "\n".join([hdr_tmpl.format(elem) for elem in columns]) html_table.insert(0, "<tr>\n" + tbl_hdr + "</tr>\n") have_fail = FALSE for row_data in limiter_table[1:]: # first two are mode, item, format normally row_html = [tbl_cell.format(elem) for elem in row_data[0:2]] Loading @@ -1241,7 +1242,9 @@ class IvasModeAnalyzer(IvasModeCollector): tbl_cell_pass.format(LIMITER_RESULTS[limiter_keys[col_idx]]["number_format"].format(value))) if row_fail is True: html_table.append(tbl_row.format("\n".join(row_html))) # assemble page have_fail = True # assemble page if something failed if have_fail is True: page_tmpl = "{}\n<html>\n<head>\n{}\n<title>{}</title>\n{}\n</head><body>\n{}</body>\n</html>" title_tmpl = "Limiter report ({})" fname_tmpl = "{}_{}.html" Loading Loading
scripts/pyivastest/IvasModeAnalyzer.py +17 −14 Original line number Diff line number Diff line Loading @@ -1224,6 +1224,7 @@ class IvasModeAnalyzer(IvasModeCollector): columns.append(LIMITER_RESULTS[lim_key]["keyword"]) tbl_hdr = "\n".join([hdr_tmpl.format(elem) for elem in columns]) html_table.insert(0, "<tr>\n" + tbl_hdr + "</tr>\n") have_fail = FALSE for row_data in limiter_table[1:]: # first two are mode, item, format normally row_html = [tbl_cell.format(elem) for elem in row_data[0:2]] Loading @@ -1241,7 +1242,9 @@ class IvasModeAnalyzer(IvasModeCollector): tbl_cell_pass.format(LIMITER_RESULTS[limiter_keys[col_idx]]["number_format"].format(value))) if row_fail is True: html_table.append(tbl_row.format("\n".join(row_html))) # assemble page have_fail = True # assemble page if something failed if have_fail is True: page_tmpl = "{}\n<html>\n<head>\n{}\n<title>{}</title>\n{}\n</head><body>\n{}</body>\n</html>" title_tmpl = "Limiter report ({})" fname_tmpl = "{}_{}.html" Loading