X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_CPTA.py;h=89e9a41b48cf5f7e4902e86dbc3a7025e5449083;hp=e3cc55f8cf95f7ca458558a898f1ad228b08e8a7;hb=9964155b56020914494f7341c2d1162f2ac9d720;hpb=fde192bc8a6ba1a4e2b4cf5b3297fb076efd58fc diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py index e3cc55f8cf..89e9a41b48 100644 --- a/resources/tools/presentation/generator_CPTA.py +++ b/resources/tools/presentation/generator_CPTA.py @@ -32,7 +32,7 @@ from utils import split_outliers, archive_input_data, execute_command HTML_BUILDER = 'sphinx-build -v -c conf_cpta -a ' \ '-b html -E ' \ '-t html ' \ - '-D version="Generated on {date}" ' \ + '-D version="{date}" ' \ '{working_dir} ' \ '{build_dir}/' @@ -64,7 +64,7 @@ def generate_cpta(spec, data): ret_code = _generate_all_charts(spec, data) cmd = HTML_BUILDER.format( - date=datetime.date.today().strftime('%d-%b-%Y'), + date=datetime.datetime.utcnow().strftime('%m/%d/%Y %H:%M UTC'), working_dir=spec.environment["paths"]["DIR[WORKING,SRC]"], build_dir=spec.environment["paths"]["DIR[BUILD,HTML]"]) execute_command(cmd) @@ -172,8 +172,8 @@ def _evaluate_results(trimmed_data, window=10): if first: first = False continue - if (np.isnan(value) \ - or np.isnan(tmm[build_nr]) \ + if (np.isnan(value) + or np.isnan(tmm[build_nr]) or np.isnan(tmstd[build_nr])): results.append(0.0) elif value < (tmm[build_nr] - 3 * tmstd[build_nr]):