{% extends "base_report.html" %} {% block report_title %}SPC Report{% endblock %} {% block content %}
Recipe: {{ recipe.code }} — {{ recipe.name }} {% if subtask %}  |  Measurement Point: #{{ subtask.marker_number }} — {{ subtask.description }} {% endif %} {% if filters_desc %}
Filters: {{ filters_desc | join(' | ') }} {% endif %}
Summary
{{ summary.total }}
Total
{{ summary.pass_rate }}%
Pass ({{ summary.pass_count }})
{{ summary.warning_rate }}%
Warning ({{ summary.warning_count }})
{{ summary.fail_rate }}%
Fail ({{ summary.fail_count }})
{% if capability and capability.cp is not none %}
Capability Indices
{% for idx_name, idx_val in [('Cp', capability.cp), ('Cpk', capability.cpk), ('Pp', capability.pp), ('Ppk', capability.ppk)] %} {% endfor %}
Index Value Rating
{{ idx_name }} {{ idx_val if idx_val is not none else '—' }} {% if idx_val is not none %} {% if idx_val >= 1.33 %} Capable {% elif idx_val >= 1.0 %} Marginal {% else %} Not Capable {% endif %} {% else %} — {% endif %}
n: {{ capability.n }}  |  Mean: {{ capability.mean }}  |  Std Dev: {{ capability.std_dev }} {% if subtask %}
Tolerances: {% if subtask.nominal is not none %}Nom: {{ subtask.nominal }} {% endif %} {% if subtask.utl is not none %}UTL: {{ subtask.utl }} {% endif %} {% if subtask.ltl is not none %}LTL: {{ subtask.ltl }} {% endif %} {% if subtask.uwl is not none %}UWL: {{ subtask.uwl }} {% endif %} {% if subtask.lwl is not none %}LWL: {{ subtask.lwl }} {% endif %} {% endif %}
{% endif %} {% if control_chart_svg %}
Control Chart
{{ control_chart_svg | safe }}
{% endif %} {% if histogram_svg %}
Histogram
{{ histogram_svg | safe }}
{% endif %} {% endblock %}