From 5f54eed3b712cb239a4a2b612953024a21b7c4e0 Mon Sep 17 00:00:00 2001
From: Thomas Bock <thomas.bock@ptb.de>
Date: Wed, 23 Nov 2022 15:11:37 +0100
Subject: [PATCH] add cert plans for comb device class

---
 cal/sections-ce3_comb_error.json                           | 7 +++++++
 cal/sections-ce3_comb_srg_error.json                       | 7 +++++++
 cal/utils.py                                               | 1 +
 .../en-para_2-alt_0-residual_pressure.tex                  | 2 +-
 templates/latex/device_setup_itemize.tex                   | 4 ++--
 5 files changed, 18 insertions(+), 3 deletions(-)
 create mode 100644 cal/sections-ce3_comb_error.json
 create mode 100644 cal/sections-ce3_comb_srg_error.json

diff --git a/cal/sections-ce3_comb_error.json b/cal/sections-ce3_comb_error.json
new file mode 100644
index 0000000..58386fd
--- /dev/null
+++ b/cal/sections-ce3_comb_error.json
@@ -0,0 +1,7 @@
+[
+    "device_description",
+    "calibration_procedure-ce3-ig",
+    "error_and_cf",
+    "result_error",
+    "uncertainty-ig"
+]
diff --git a/cal/sections-ce3_comb_srg_error.json b/cal/sections-ce3_comb_srg_error.json
new file mode 100644
index 0000000..58386fd
--- /dev/null
+++ b/cal/sections-ce3_comb_srg_error.json
@@ -0,0 +1,7 @@
+[
+    "device_description",
+    "calibration_procedure-ce3-ig",
+    "error_and_cf",
+    "result_error",
+    "uncertainty-ig"
+]
diff --git a/cal/utils.py b/cal/utils.py
index 03cda1b..64cd116 100644
--- a/cal/utils.py
+++ b/cal/utils.py
@@ -129,6 +129,7 @@ def get_tables(cal_docs):
             gas = get_gas(doc)
             result_type = get_result_type(doc)
             table = get_result_table(doc)
+
             if table is None:
                 continue
             if not gas in tables:
diff --git a/templates/latex/calibration_procedure-se3-cdg/en-para_2-alt_0-residual_pressure.tex b/templates/latex/calibration_procedure-se3-cdg/en-para_2-alt_0-residual_pressure.tex
index 7380cbe..a20723e 100644
--- a/templates/latex/calibration_procedure-se3-cdg/en-para_2-alt_0-residual_pressure.tex
+++ b/templates/latex/calibration_procedure-se3-cdg/en-para_2-alt_0-residual_pressure.tex
@@ -12,7 +12,7 @@
 ((*-endfor*))
 
 Before each calibration point the offset \(p_\text{ind,r}\) was
-recorded  (5 readings) at the base pressure and subtracted from the subsequent indication
+recorded  (10 readings) at the base pressure and subtracted from the subsequent indication
 \(p_\text{ind}\) to give the corrected indicated value \(p_\text{corr}\).
 ((*if offsetcontrib["is"] == "true" *))
 The contribution of the offset scatter to the total uncertainty was
diff --git a/templates/latex/device_setup_itemize.tex b/templates/latex/device_setup_itemize.tex
index 61f51d4..429b7fb 100644
--- a/templates/latex/device_setup_itemize.tex
+++ b/templates/latex/device_setup_itemize.tex
@@ -4,7 +4,7 @@
         k == "Unit" or k == "DISPLAY UNIT" or k == "Display Unit" or
         k == "Response" or k == "RESPONSE" or
         k == "Average" or
-        k == "Channel" or
+        k == "Channel" or k == "channel" or
         k == "ZeroEnable" or k == "Zero enable" or
         k == "Temperature Compensation" or k == "Temperature compensation" or
         k == "Filter" or
@@ -24,7 +24,7 @@
         k == "Cor" or k == "Offset" or
         k == "Cal.Ful" or k == "Cal b" or
         k == "Filt" or k == "CAL" or k == "FSr" or k == "oFs" or
-        k == "FiLt" or k == "SEnS2" or k == "diGit"
+        k == "FiL" or k == "FiLt" or k == "SEnS1" or k == "SEnS2" or k == "diGit"
         *))
 
 \item[\textbf{\texttt{(((k)))}:}] \texttt{(((v)))}
-- 
GitLab