{% extends "html1/index.html" %} {% block style %} {{ super() }} .warning-list { margin-left: 24px; margin-top: 12px; widt: 90%; } #warnings ul { padding: 0; margin-left: 24px; display: block; } #warnings li { display: block; margin-bottom: 8px; } /* passed tests are not collapsible (see html1/module.html) */ div.test > .title { padding: 0.5rem; padding-left: 0.75rem; } div.test > .title::before { content: " "; width: 0.75rem; display: inline-block; } {% endblock %} {% set title = "Nilearn test report" %} {% block warnings %}

Warnings

WARNINGS {{ warnings|count }}

{% set warning_types = warnings|map(attribute='category')|unique|list %} {% for type in warning_types %} {% set nb_warning = namespace(value=0) %} {% for warning in warnings %} {% if warning.category == type %} {% set nb_warning.value = nb_warning.value + 1 %} {% endif %} {% endfor %}
{{ type.__name__ }} {{ nb_warning.value }}
    {% set type_warnings = warnings|selectattr("category", "equalto", type)|list %} {% set messages = type_warnings|map(attribute="message")|map("string")|unique|sort %} {% for message in messages %} {% for warning in type_warnings|sort(attribute="filename") %} {% if warning.message|string == message %}
  • {{ warning.filename }}:{{ warning.lineno }}
    {{ warning.message }}
  • {% endif %} {% endfor %} {% endfor %}
{% endfor %}
{% endblock %}