{% extends "master.html" %} {% import 'macros.html' as mcr %} {% set active_page = "multicolor" %} {% set skymapTypes = ['SkyMap', 'TwoD', 'neoxyPlotter'] %} {% set comboplotTypes = ['ComboHistogram', 'ComboMetricVsH', 'Combo'] %} {% set hourglassTypes = ['Hourglass'] %} {% set run = runlist.get_run(runId) %} {% set metrics = run.metrics %} {% block moresidebar %} {% endblock %} {% block content %} {% set metricInfo = run.metric_info() %} {% set ninfo = metricInfo|length %} {% for g in run.groups.keys() %} {% set groupstart = True %} {% for sg in run.groups[g] %} {# Get the metrics, skymaps and combo histograms in this subgroup. #} {% set subsetMetrics = run.metrics_in_subgroup(g, sg) %} {% set skysetMetrics = run.metrics_with_plot_type(plot_type=skymapTypes, metrics=subsetMetrics) %} {% set combosetMetrics = run.metrics_with_plot_type(plot_type=comboplotTypes, metrics=subsetMetrics) %} {% set hourglassMetrics = run.metrics_with_plot_type(plot_type=hourglassTypes, metrics=subsetMetrics) %} {% set statNames = run.all_stat_names(subsetMetrics) %} {% set displaygroup = skysetMetrics|length + combosetMetrics|length + vectorMetrics|length + hourglassMetrics|length + statNames|length %} {% if displaygroup > 0 %} {# then show this group ... #} {% if groupstart == True %} {% set groupstart = False %} {% endif %}

{{g|escape}} : {{sg|escape}}

{# In each group, plot sky maps/TwoD maps, then combo hists, then hourglass, then summary stats #} {% set metricNames = run.unique_metric_names(skysetMetrics, baseonly=True) %} {% for mname in metricNames %} {% set mskyset = run.metrics_with_metric_name(mname, skysetMetrics, baseonly=True) %} {% set skymaps = run.get_sky_maps(mskyset, plot_type=skymapTypes) %} {% set skymaps = run.order_plots(skymaps) %} {% if skymaps|length > 0 %}
{% set metricLink = 'metricResults?runId=%s&metricId=' %(runId) %} {# add a link to click to the skymap group's details #} {% set metricSelect = run.metrics_to_metric_ids(mskyset)|join('&metricId=') %} {% set metricLink = metricLink ~ metricSelect %} {{mname}}
{# put in the sky map plots #} {% for skymap in skymaps %} {% set mapkey = 'SkyMap' %} {% if skymap[mapkey]['plot_file']|length == 0 %} {% else %} {% set plotfile = skymap[mapkey]['plot_file'][0] %} {% set thumbfile = skymap[mapkey]['thumb_file'][0] %} {% endif %} {% if loop.index is divisibleby 3 %} {% endif %} {% endfor %}
{% endif %} {% endfor %} {% for m in combosetMetrics %} {% set comboplots = run.plots_for_metric(m) %} {% set combodict = run.plot_dict(comboplots) %} {% set combohist = combodict['ComboHistogram'] %} {% if combohist|length > 0 %}
{% set metricInfo = run.metric_info(m) %} {{ metricInfo['MetricName']|escape }} ({{metricInfo['Slicer']|escape}})
{{metricInfo['InfoLabel']|escape}}

{% for plotfile, thumbfile in zip(combohist['plotFile'], combohist['thumbFile']) %} {% endfor %}
{% endif %} {% endfor %} {% if hourglassMetrics|length > 0 %}
{% for h in hourglassMetrics %} {% set metricInfo = run.metric_info(h) %} {# {{metricInfo['InfoLabel']|escape}}
#} {% set hourglassplots = run.plots_for_metric(h) %} {% set hourglassdict = run.plot_dict(hourglassplots) %} {% set hourglass = hourglassdict['Hourglass'] %} {% for plotfile, thumbfile in zip(hourglass['plotFile'], hourglass['thumbFile']) %} {% endfor %} {% endfor %}
{% endif %} {% if statNames | length > 0 %}
{{ mcr.MakeStatTable(subsetMetrics, g, sg, run) }}
{% endif %} {% endif %} {% endfor %} {% endfor %} {% endblock %}