X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fnew%2Fgenerator_tables.py;h=735fd2185f95a9dd0de3f85922cd5bee34a867c6;hp=6951021bb94d6e936d8e75d90adf70d825e2c113;hb=0e8d8a59fd6b8477b17a9222a5cfb0d94d24ff22;hpb=6928c2b1620e5d020a19e944f416df6a1f4b85ad diff --git a/resources/tools/presentation/new/generator_tables.py b/resources/tools/presentation/new/generator_tables.py index 6951021bb9..735fd2185f 100644 --- a/resources/tools/presentation/new/generator_tables.py +++ b/resources/tools/presentation/new/generator_tables.py @@ -788,8 +788,8 @@ def table_performance_trending_dashboard(table, input_data): round(last_avg / 1000000, 2), '-' if isnan(rel_change_last) else rel_change_last, '-' if isnan(rel_change_long) else rel_change_long, - classification_lst[-long_win_size:].count("regression"), - classification_lst[-long_win_size:].count("progression")]) + classification_lst[-win_size:].count("regression"), + classification_lst[-win_size:].count("progression")]) tbl_lst.sort(key=lambda rel: rel[0]) @@ -823,6 +823,7 @@ def table_performance_trending_dashboard(table, input_data): with open(txt_file_name, "w") as txt_file: txt_file.write(str(txt_table)) + def table_performance_trending_dashboard_html(table, input_data): """Generate the table(s) with algorithm: table_performance_trending_dashboard_html specified in the specification