{% extends "master.html" %} {% import 'macros.html' as mcr %} {% set active_page = "listMetrics" %} {% set run = runlist.get_run(runId) %} {% set selectMetrics = run.convert_select_to_metrics(groupList, metricIdList) %} {% set selectGroups = run.metrics_to_subgroups(selectMetrics) %} {% block moresidebar %} {% endblock %} {% block content %} {# show metric information for each metric selected from 'select' page #} {% for g in selectGroups.keys() %} {% set groupstart = True %} {% for sg in selectGroups[g] %} {% if groupstart == True %} {% set groupstart = False %} {% endif %} {% set subsetMetrics = run.metrics_in_subgroup(g, sg, metrics=selectMetrics) %} {% for metric in subsetMetrics %} {% set metricInfo = run.metric_info(metric) %}
{# Print the metric info #} {{ mcr.PrintMetricInfo(runId, metric, metricInfo) }} {# Add the plots for this metric #} {% set metricPlots = run.plots_for_metric(metric) %} {{ mcr.MakePlotTable(metricPlots, run) }}

{% set caption = run.caption_for_metric(metric) %} {{ caption|escape }}

{# Add the summary stats for this metric #} {% set stats = run.stats_for_metric(metric) %} {% set statdict = run.stat_dict(stats) %} {% for name in statdict.keys() %} {% endfor %}
{{ name|escape }}: {% if name == 'Count' %} {{ '%d'|format(statdict[name]) }} {% else %} {{ '%.2f'|format(statdict[name])}} {% endif %}
{% endfor %} {% endfor %} {% endfor %} {% endblock %}