Summary of non-compliance:

{# #} {% for modality in dataset.modalities %} {% set percent_non_compliant = 100 * modality.non_compliant_subject_names|length|float / modality.subjects|length|float %} {% set percent_compliant = 100 * modality.compliant_subject_names|length|float / modality.subjects|length|float %} {# #} {% endfor %}
Modality # non-compliant (%) Non-compliant subjects Reasons # compliant (%) # subjects # Echo-Timeserrors
{{ modality.name }} {{ modality.non_compliant_subject_names|length }} ({{ percent_non_compliant|round(2, 'floor') }} %) {% for name in modality.non_compliant_subject_names %} {{ name }}, {% endfor %} {% for parameter in modality.reasons_non_compliance() %} {{ parameter }}, {% endfor %} {{ modality.compliant_subject_names|length }} ( {{ percent_compliant|round(2, 'floor') }} %) {{ modality.subjects|length }} {{ modality.get_echo_times() | length }} #} {# {{ mode.error_children|length }}#} {#
{% for modality in dataset.modalities %} {% if not modality.compliant %}

Modality : {{ modality.name }}

{% for echo_time in modality.get_echo_times() %} {% set te = echo_time %} {% set reference = modality.get_reference(echo_time) %} {% if modality.is_multi_echo() %}

Multi-Echo Modality : Reference {{ loop.index }}

{% else %}

Reference

{% endif %} {% for key in reference.keys() %} {% endfor %} {% for key in reference.keys() %} {% endfor %}
{{ key }}
{{ reference[key] }}
{% if modality.reasons_non_compliance(te).any() %} {% endif %} {% for parameter in modality.reasons_non_compliance(te) %} {# {% set reasons = modality.query_reason(parameter, te) %}#} {% endfor %}
Parameter Ref. Value Found Subject_Session
{{ parameter }} {% for value in modality.query_reason(parameter, te, 'ref_value') %} {{ value }}, {% endfor %} {% for value in modality.query_reason(parameter, te, 'new_value') %} {{ value }}, {% endfor %} {% for subject in modality.query_reason (parameter, te, 'subjects') %} {{ subject }}, {% endfor %}
{##} {# #} {# {% for subject in modality.subjects %}#} {# {% for session in subject.sessions %}#} {# {% for run in session.runs %}#} {# {% if run.delta and (run.echo_time == echo_time) %}#} {# #} {# #} {# #} {# #} {# {% for item in run.delta %}#} {# #} {# #} {# {% endfor %}#} {# #} {# #} {# #} {# #} {# #} {# #} {# {% for item in run.delta %}#} {# #} {# #} {# {% endfor %}#} {# #} {# #} {# {% endif %}#} {# {% endfor %}#} {##} {# {% endfor %}#} {##} {# {% endfor %}#} {#
SubjectSession#} {# {{ "Ref. : "+item[1] }}{{ "Found: "+item[1] }}
{{ subject.name }}{{ session.name }}{{ item[2][1] }}{{ item[2][0] }}
#} {% endfor %} {% endif %} {% endfor %} {% for modality in dataset.modalities %} {% if modality.compliant %}

Modality : {{ modality.name }}

{% for echo_time in modality.get_echo_times() %} {% set reference = modality.get_reference(echo_time) %} {% if modality.is_multi_echo() %}

Mult-Echo Modality : Reference {{ loop.index }}

{% else %}

Reference

{% endif %} {% for key in reference.keys() %} {% endfor %} {% for key in reference.keys() %} {% endfor %}
{{ key }}
{{ reference[key] }}
{% endfor %} {% endif %} {% endfor %}