{# Sensor-calibration table with collapsible coefficient cells. The `calibration` panel payload (kind="html"). The `details.coeff` style block moved to mooring.html page_styles. #} {% set has_sensors = instruments | selectattr("sensors") | list %} {% if has_sensors %} {% set ns = namespace(idx=0) %} {% for instr in instruments %} {% if instr.sensors %} {% set ns.idx = ns.idx + 1 %} {% for sensor in instr.sensors %} {% endfor %} {% endif %} {% endfor %}
# Type Instr S/N Sensor Model Sensor S/N Cal date Coefficients
{% if loop.index0 == 0 %}{{ ns.idx }}{% endif %} {% if loop.index0 == 0 %}{{ instr.instr_type }}{% endif %} {% if loop.index0 == 0 %}{{ instr.serial }}{% endif %} {{ sensor.sensor_type | title }} {{ sensor.sensor_model }} {{ sensor.sensor_serial }} {{ sensor.cal_date }} {% if sensor.coefficients %}
show
{{ sensor.coefficients }}
{% else %} {% endif %}
{% else %}

No sensor calibration metadata found in processed files.

{% endif %}