{# 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 Instrument serial Sensor Model Sensor S/N Cal date Coefficients
{% if loop.index0 == 0 %}{{ ns.idx }}{% endif %} {% if loop.index0 == 0 %}{{ instr.type_label }}{% 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 %} {% if timing_mode == "imported" %}

The originator's files give no calibration dates or coefficients. Calibrations were applied by the originator before publication; see their data report.

{% else %}

The processed files carry no calibration dates or coefficients.

{% endif %} {% endif %}