X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=f555fce77d128693f9f8c48be1da5da5266718b4;hb=refs%2Fchanges%2F49%2F12849%2F3;hp=8791ae5804bb1ccb547a57a843140e29f427ff56;hpb=179579436b0f333732e9937ba4cf7d6ad6a83f46;p=csit.git diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 8791ae5804..f555fce77d 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -43,9 +43,9 @@ def generate_tables(spec, data): for table in spec.tables: try: eval(table["algorithm"])(table, data) - except NameError: - logging.error("The algorithm '{0}' is not defined.". - format(table["algorithm"])) + except NameError as err: + logging.error("Probably algorithm '{alg}' is not defined: {err}". + format(alg=table["algorithm"], err=repr(err)) logging.info("Done.") @@ -819,6 +819,8 @@ def table_performance_trending_dashboard(table, input_data): classification_lst = classify_anomalies(data_t, window=14) if classification_lst: + if isnan(rel_change_last) and isnan(rel_change_long): + continue tbl_lst.append( [tbl_dict[tst_name]["name"], '-' if isnan(last_median_t) else