The dashed lines are suggestions for the ventilation transition times
- (generated from the input data using the Pelt algorithm).
+
+
diff --git a/caimira/models.py b/caimira/models.py
index 3fe58e22..5170cc20 100644
--- a/caimira/models.py
+++ b/caimira/models.py
@@ -1561,7 +1561,7 @@ def CO2_concentrations_from_params(self, CO2_concentration_model: CO2Concentrati
# Calculate the predictive CO2 concentration
return [CO2_concentration_model.concentration(time) for time in self.times]
- def CO2_fit_params(self):
+ def CO2_fit_params(self) -> typing.Dict:
if len(self.times) != len(self.CO2_concentrations):
raise ValueError('times and CO2_concentrations must have same length.')
@@ -1570,6 +1570,11 @@ def CO2_fit_params(self):
'times and CO2_concentrations must contain at last two elements')
def fun(x):
+ '''
+ The objective function to be minimized, where x is an argument
+ containing the initial guess for the breathing rate (exhalation_rate)
+ and ventilation values (ventilation_values).
+ '''
exhalation_rate = x[0]
ventilation_values = tuple(x[1:])
CO2_concentration_model = self.CO2_concentration_model(
diff --git a/caimira/tests/models/conftest.py b/caimira/tests/models/conftest.py
new file mode 100644
index 00000000..75533b5f
--- /dev/null
+++ b/caimira/tests/models/conftest.py
@@ -0,0 +1,1205 @@
+import pytest
+
+
+@pytest.fixture
+def office_scenario_1_sensor_data():
+ return {
+ 'times': [14., 14.0028, 14.0056, 14.0083, 14.0111, 14.0139, 14.0167,
+ 14.0194, 14.0222, 14.025, 14.0278, 14.0306, 14.0333, 14.0361,
+ 14.0389, 14.0417, 14.0444, 14.0472, 14.05, 14.0528, 14.0556,
+ 14.0583, 14.0611, 14.0639, 14.0667, 14.0694, 14.0722, 14.075,
+ 14.0778, 14.0806, 14.0833, 14.0861, 14.0889, 14.0917, 14.0944,
+ 14.0972, 14.1, 14.1028, 14.1056, 14.1083, 14.1111, 14.1139,
+ 14.1167, 14.1194, 14.1222, 14.125, 14.1278, 14.1306, 14.1333,
+ 14.1361, 14.1389, 14.1417, 14.1444, 14.1472, 14.15, 14.1528,
+ 14.1556, 14.1583, 14.1611, 14.1639, 14.1667, 14.1694, 14.1722,
+ 14.175, 14.1778, 14.1806, 14.1833, 14.1861, 14.1889, 14.1917,
+ 14.1944, 14.1972, 14.2, 14.2028, 14.2056, 14.2083, 14.2111,
+ 14.2139, 14.2167, 14.2194, 14.2222, 14.225, 14.2278, 14.2306,
+ 14.2333, 14.2361, 14.2389, 14.2417, 14.2444, 14.2472, 14.25,
+ 14.2528, 14.2556, 14.2583, 14.2611, 14.2639, 14.2667, 14.2694,
+ 14.2722, 14.275, 14.2778, 14.2806, 14.2833, 14.2861, 14.2889,
+ 14.2917, 14.2944, 14.2972, 14.3, 14.3028, 14.3056, 14.3083,
+ 14.3111, 14.3139, 14.3167, 14.3194, 14.3222, 14.325, 14.3278,
+ 14.3306, 14.3333, 14.3361, 14.3389, 14.3417, 14.3444, 14.3472,
+ 14.35, 14.3528, 14.3556, 14.3583, 14.3611, 14.3639, 14.3667,
+ 14.3694, 14.3722, 14.375, 14.3778, 14.3806, 14.3833, 14.3861,
+ 14.3889, 14.3917, 14.3944, 14.3972, 14.4, 14.4028, 14.4056,
+ 14.4083, 14.4111, 14.4139, 14.4167, 14.4194, 14.4222, 14.425,
+ 14.4278, 14.4306, 14.4333, 14.4361, 14.4389, 14.4417, 14.4444,
+ 14.4472, 14.45, 14.4528, 14.4556, 14.4583, 14.4611, 14.4639,
+ 14.4667, 14.4694, 14.4722, 14.475, 14.4778, 14.4806, 14.4833,
+ 14.4861, 14.4889, 14.4917, 14.4944, 14.4972, 14.5, 14.5028,
+ 14.5056, 14.5083, 14.5111, 14.5139, 14.5167, 14.5194, 14.5222,
+ 14.525, 14.5278, 14.5306, 14.5333, 14.5361, 14.5389, 14.5417,
+ 14.5444, 14.5472, 14.55, 14.5528, 14.5556, 14.5583, 14.5611,
+ 14.5639, 14.5667, 14.5694, 14.5722, 14.575, 14.5778, 14.5806,
+ 14.5833, 14.5861, 14.5889, 14.5917, 14.5944, 14.5972, 14.6,
+ 14.6028, 14.6056, 14.6083, 14.6111, 14.6139, 14.6167, 14.6194,
+ 14.6222, 14.625, 14.6278, 14.6306, 14.6333, 14.6361, 14.6389,
+ 14.6417, 14.6444, 14.6472, 14.65, 14.6528, 14.6556, 14.6583,
+ 14.6611, 14.6639, 14.6667, 14.6694, 14.6722, 14.675, 14.6778,
+ 14.6806, 14.6833, 14.6861, 14.6889, 14.6917, 14.6944, 14.6972,
+ 14.7, 14.7028, 14.7056, 14.7083, 14.7111, 14.7139, 14.7167,
+ 14.7194, 14.7222, 14.725, 14.7278, 14.7306, 14.7333, 14.7361,
+ 14.7389, 14.7417, 14.7444, 14.7472, 14.75, 14.7528, 14.7556,
+ 14.7583, 14.7611, 14.7639, 14.7667, 14.7694, 14.7722, 14.775,
+ 14.7778, 14.7806, 14.7833, 14.7861, 14.7889, 14.7917, 14.7944,
+ 14.7972, 14.8, 14.8028, 14.8056, 14.8083, 14.8111, 14.8139,
+ 14.8167, 14.8194, 14.8222, 14.825, 14.8278, 14.8306, 14.8333,
+ 14.8361, 14.8389, 14.8417, 14.8444, 14.8472, 14.85, 14.8528,
+ 14.8556, 14.8583, 14.8611, 14.8639, 14.8667, 14.8694, 14.8722,
+ 14.875, 14.8778, 14.8806, 14.8833, 14.8861, 14.8889, 14.8917,
+ 14.8944, 14.8972, 14.9, 14.9028, 14.9056, 14.9083, 14.9111,
+ 14.9139, 14.9167, 14.9194, 14.9222, 14.925, 14.9278, 14.9306,
+ 14.9333, 14.9361, 14.9389, 14.9417, 14.9444, 14.9472, 14.95,
+ 14.9528, 14.9556, 14.9583, 14.9611, 14.9639, 14.9667, 14.9694,
+ 14.9722, 14.975, 14.9778, 14.9806, 14.9833, 14.9861, 14.9889,
+ 14.9917, 14.9944, 14.9972, 15., 15.0028, 15.0056, 15.0083,
+ 15.0111, 15.0139, 15.0167, 15.0194, 15.0222, 15.025, 15.0278,
+ 15.0306, 15.0333, 15.0361, 15.0389, 15.0417, 15.0444, 15.0472,
+ 15.05, 15.0528, 15.0556, 15.0583, 15.0611, 15.0639, 15.0667,
+ 15.0694, 15.0722, 15.075, 15.0778, 15.0806, 15.0833, 15.0861,
+ 15.0889, 15.0917, 15.0944, 15.0972, 15.1, 15.1028, 15.1056,
+ 15.1083, 15.1111, 15.1139, 15.1167, 15.1194, 15.1222, 15.125,
+ 15.1278, 15.1306, 15.1333, 15.1361, 15.1389, 15.1417, 15.1444,
+ 15.1472, 15.15, 15.1528, 15.1556, 15.1583, 15.1611, 15.1639,
+ 15.1667, 15.1694, 15.1722, 15.175, 15.1778, 15.1806, 15.1833,
+ 15.1861, 15.1889, 15.1917, 15.1944, 15.1972, 15.2, 15.2028,
+ 15.2056, 15.2083, 15.2111, 15.2139, 15.2167, 15.2194, 15.2222,
+ 15.225, 15.2278, 15.2306, 15.2333, 15.2361, 15.2389, 15.2417,
+ 15.2444, 15.2472, 15.25, 15.2528, 15.2556, 15.2583, 15.2611,
+ 15.2639, 15.2667, 15.2694, 15.2722, 15.275, 15.2778, 15.2806,
+ 15.2833, 15.2861, 15.2889, 15.2917, 15.2944, 15.2972, 15.3,
+ 15.3028, 15.3056, 15.3083, 15.3111, 15.3139, 15.3167, 15.3194,
+ 15.3222, 15.325, 15.3278, 15.3306, 15.3333, 15.3361, 15.3389,
+ 15.3417, 15.3444, 15.3472, 15.35, 15.3528, 15.3556, 15.3583,
+ 15.3611, 15.3639, 15.3667, 15.3694, 15.3722, 15.375, 15.3778,
+ 15.3806, 15.3833, 15.3861, 15.3889, 15.3917, 15.3944, 15.3972,
+ 15.4, 15.4028, 15.4056, 15.4083, 15.4111, 15.4139, 15.4167,
+ 15.4194, 15.4222, 15.425, 15.4278, 15.4306, 15.4333, 15.4361,
+ 15.4389, 15.4417, 15.4444, 15.4472, 15.45, 15.4528, 15.4556,
+ 15.4583, 15.4611, 15.4639, 15.4667, 15.4694, 15.4722, 15.475,
+ 15.4778, 15.4806, 15.4833, 15.4861, 15.4889, 15.4917, 15.4944,
+ 15.4972, 15.5, 15.5028, 15.5056, 15.5083, 15.5111, 15.5139,
+ 15.5167, 15.5194, 15.5222, 15.525, 15.5278, 15.5306, 15.5333,
+ 15.5361, 15.5389, 15.5417, 15.5444, 15.5472, 15.55, 15.5528,
+ 15.5556, 15.5583, 15.5611, 15.5639, 15.5667, 15.5694, 15.5722,
+ 15.575, 15.5778, 15.5806, 15.5833, 15.5861, 15.5889, 15.5917,
+ 15.5944, 15.5972, 15.6, 15.6028, 15.6056, 15.6083, 15.6111,
+ 15.6139, 15.6167, 15.6194, 15.6222, 15.625, 15.6278, 15.6306,
+ 15.6333, 15.6361, 15.6389, 15.6417, 15.6444, 15.6472, 15.65,
+ 15.6528, 15.6556, 15.6583, 15.6611, 15.6639, 15.6667, 15.6694,
+ 15.6722, 15.675, 15.6778, 15.6806, 15.6833, 15.6861, 15.6889,
+ 15.6917, 15.6944, 15.6972, 15.7, 15.7028, 15.7056, 15.7083,
+ 15.7111, 15.7139, 15.7167, 15.7194, 15.7222, 15.725, 15.7278,
+ 15.7306, 15.7333, 15.7361, 15.7389, 15.7417, 15.7444, 15.7472,
+ 15.75, 15.7528, 15.7556, 15.7583, 15.7611, 15.7639, 15.7667,
+ 15.7694, 15.7722, 15.775, 15.7778, 15.7806, 15.7833, 15.7861,
+ 15.7889, 15.7917, 15.7944, 15.7972, 15.8, 15.8028, 15.8056,
+ 15.8083, 15.8111, 15.8139, 15.8167, 15.8194, 15.8222, 15.825,
+ 15.8278, 15.8306, 15.8333, 15.8361, 15.8389, 15.8417, 15.8444,
+ 15.8472, 15.85, 15.8528, 15.8556, 15.8583, 15.8611, 15.8639,
+ 15.8667, 15.8694, 15.8722, 15.875, 15.8778, 15.8806, 15.8833,
+ 15.8861, 15.8889, 15.8917, 15.8944, 15.8972, 15.9, 15.9028,
+ 15.9056, 15.9083, 15.9111, 15.9139, 15.9167, 15.9194, 15.9222,
+ 15.925, 15.9278, 15.9306, 15.9333, 15.9361, 15.9389, 15.9417,
+ 15.9444, 15.9472, 15.95, 15.9528, 15.9556, 15.9583, 15.9611,
+ 15.9639, 15.9667, 15.9694, 15.9722, 15.975, 15.9778, 15.9806,
+ 15.9833, 15.9861, 15.9889, 15.9917, 15.9944, 15.9972, 16.,
+ 16.0028, 16.0056, 16.0083, 16.0111, 16.0139, 16.0167, 16.0194,
+ 16.0222, 16.025, 16.0278, 16.0306, 16.0333, 16.0361, 16.0389,
+ 16.0417, 16.0444, 16.0472, 16.05, 16.0528, 16.0556, 16.0583,
+ 16.0611, 16.0639, 16.0667, 16.0694, 16.0722, 16.075, 16.0778,
+ 16.0806, 16.0833, 16.0861, 16.0889, 16.0917, 16.0944, 16.0972,
+ 16.1, 16.1028, 16.1056, 16.1083, 16.1111, 16.1139, 16.1167,
+ 16.1194, 16.1222, 16.125, 16.1278, 16.1306, 16.1333, 16.1361,
+ 16.1389, 16.1417, 16.1444, 16.1472, 16.15, 16.1528, 16.1556,
+ 16.1583, 16.1611, 16.1639, 16.1667, 16.1694, 16.1722, 16.175,
+ 16.1778, 16.1806, 16.1833, 16.1861, 16.1889, 16.1917, 16.1944,
+ 16.1972, 16.2, 16.2028, 16.2056, 16.2083, 16.2111, 16.2139,
+ 16.2167, 16.2194, 16.2222, 16.225, 16.2278, 16.2306, 16.2333,
+ 16.2361, 16.2389, 16.2417, 16.2444, 16.2472, 16.25, 16.2528,
+ 16.2556, 16.2583, 16.2611, 16.2639, 16.2667, 16.2694, 16.2722,
+ 16.275, 16.2778, 16.2806, 16.2833, 16.2861, 16.2889, 16.2917,
+ 16.2944, 16.2972, 16.3, 16.3028, 16.3056, 16.3083, 16.3111,
+ 16.3139, 16.3167, 16.3194, 16.3222, 16.325, 16.3278, 16.3306,
+ 16.3333, 16.3361, 16.3389, 16.3417, 16.3444, 16.3472, 16.35,
+ 16.3528, 16.3556, 16.3583, 16.3611, 16.3639, 16.3667, 16.3694,
+ 16.3722, 16.375, 16.3778, 16.3806, 16.3833, 16.3861, 16.3889,
+ 16.3917, 16.3944, 16.3972, 16.4, 16.4028, 16.4056, 16.4083,
+ 16.4111, 16.4139, 16.4167, 16.4194, 16.4222, 16.425, 16.4278,
+ 16.4306, 16.4333, 16.4361, 16.4389, 16.4417, 16.4444, 16.4472,
+ 16.45, 16.4528, 16.4556, 16.4583, 16.4611, 16.4639, 16.4667,
+ 16.4694, 16.4722, 16.475, 16.4778, 16.4806, 16.4833, 16.4861,
+ 16.4889, 16.4917, 16.4944, 16.4972, 16.5, 16.5028, 16.5056,
+ 16.5083, 16.5111, 16.5139, 16.5167, 16.5194, 16.5222, 16.525,
+ 16.5278, 16.5306, 16.5333, 16.5361, 16.5389, 16.5417, 16.5444,
+ 16.5472, 16.55, 16.5528, 16.5556, 16.5583, 16.5611, 16.5639,
+ 16.5667, 16.5694, 16.5722, 16.575, 16.5778, 16.5806, 16.5833,
+ 16.5861, 16.5889, 16.5917, 16.5944, 16.5972, 16.6, 16.6028,
+ 16.6056, 16.6083, 16.6111, 16.6139, 16.6167, 16.6194, 16.6222,
+ 16.625, 16.6278, 16.6306, 16.6333, 16.6361, 16.6389, 16.6417,
+ 16.6444, 16.6472, 16.65, 16.6528, 16.6556, 16.6583, 16.6611,
+ 16.6639, 16.6667, 16.6694, 16.6722, 16.675, 16.6778, 16.6806,
+ 16.6833, 16.6861, 16.6889, 16.6917, 16.6944, 16.6972, 16.7,
+ 16.7028, 16.7056, 16.7083, 16.7111, 16.7139, 16.7167, 16.7194,
+ 16.7222, 16.725, 16.7278, 16.7306, 16.7333, 16.7361, 16.7389,
+ 16.7417, 16.7444, 16.7472, 16.75, 16.7528, 16.7556, 16.7583,
+ 16.7611, 16.7639, 16.7667, 16.7694, 16.7722, 16.775, 16.7778,
+ 16.7806, 16.7833, 16.7861, 16.7889, 16.7917, 16.7944, 16.7972,
+ 16.8, 16.8028, 16.8056, 16.8083, 16.8111, 16.8139, 16.8167,
+ 16.8194, 16.8222, 16.825, 16.8278, 16.8306, 16.8333, 16.8361,
+ 16.8389, 16.8417, 16.8444, 16.8472, 16.85, 16.8528, 16.8556,
+ 16.8583, 16.8611, 16.8639, 16.8667, 16.8694, 16.8722, 16.875,
+ 16.8778, 16.8806, 16.8833, 16.8861, 16.8889, 16.8917, 16.8944,
+ 16.8972, 16.9, 16.9028, 16.9056, 16.9083, 16.9111, 16.9139,
+ 16.9167, 16.9194, 16.9222, 16.925, 16.9278, 16.9306, 16.9333,
+ 16.9361, 16.9389, 16.9417, 16.9444, 16.9472, 16.95, 16.9528,
+ 16.9556, 16.9583, 16.9611, 16.9639, 16.9667, 16.9694, 16.9722,
+ 16.975, 16.9778, 16.9806, 16.9833, 16.9861, 16.9889, 16.9917,
+ 16.9944, 16.9972, 17., 17.0028, 17.0056, 17.0083, 17.0111,
+ 17.0139, 17.0167, 17.0194, 17.0222, 17.025, 17.0278, 17.0306,
+ 17.0333, 17.0361, 17.0389, 17.0417, 17.0444, 17.0472, 17.05,
+ 17.0528, 17.0556, 17.0583, 17.0611, 17.0639, 17.0667, 17.0694,
+ 17.0722, 17.075, 17.0778, 17.0806, 17.0833, 17.0861, 17.0889,
+ 17.0917, 17.0944, 17.0972, 17.1, 17.1028, 17.1056, 17.1083,
+ 17.1111, 17.1139, 17.1167, 17.1194, 17.1222, 17.125, 17.1278,
+ 17.1306, 17.1333, 17.1361, 17.1389, 17.1417, 17.1444, 17.1472,
+ 17.15, 17.1528, 17.1556, 17.1583, 17.1611, 17.1639, 17.1667,
+ 17.1694, 17.1722, 17.175, 17.1778, 17.1806, 17.1833, 17.1861,
+ 17.1889, 17.1917, 17.1944, 17.1972, 17.2, 17.2028, 17.2056,
+ 17.2083, 17.2111, 17.2139, 17.2167, 17.2194, 17.2222, 17.225,
+ 17.2278, 17.2306, 17.2333, 17.2361, 17.2389, 17.2417, 17.2444,
+ 17.2472, 17.25, 17.2528, 17.2556, 17.2583, 17.2611, 17.2639,
+ 17.2667, 17.2694, 17.2722, 17.275, 17.2778, 17.2806, 17.2833,
+ 17.2861, 17.2889, 17.2917, 17.2944, 17.2972, 17.3, 17.3028,
+ 17.3056, 17.3083, 17.3111, 17.3139, 17.3167, 17.3194, 17.3222,
+ 17.325, 17.3278, 17.3306, 17.3333, 17.3361, 17.3389, 17.3417,
+ 17.3444, 17.3472, 17.35, 17.3528, 17.3556, 17.3583, 17.3611,
+ 17.3639, 17.3667, 17.3694, 17.3722, 17.375, 17.3778, 17.3806,
+ 17.3833, 17.3861, 17.3889, 17.3917, 17.3944, 17.3972, 17.4,
+ 17.4028, 17.4056, 17.4083, 17.4111, 17.4139, 17.4167, 17.4194,
+ 17.4222, 17.425, 17.4278, 17.4306, 17.4333, 17.4361, 17.4389,
+ 17.4417, 17.4444, 17.4472, 17.45, 17.4528, 17.4556, 17.4583,
+ 17.4611, 17.4639, 17.4667, 17.4694, 17.4722, 17.475, 17.4778,
+ 17.4806, 17.4833, 17.4861, 17.4889, 17.4917, 17.4944, 17.4972,
+ 17.5],
+ 'CO2': [523.59, 524.86, 525.54, 526.47, 528.1, 528.9, 530.71,
+ 533.16, 536.51, 538.25, 541.12, 544.88, 544.92, 545.64,
+ 544., 540.58, 538.54, 535.1, 535.66, 537.07, 538.92,
+ 542.08, 544.2, 546.87, 549.62, 552.2, 555.17, 555.92,
+ 557.3, 560.14, 560.97, 561.34, 561.56, 560.66, 559.47,
+ 557.06, 557.54, 557.82, 556.88, 555.97, 555.34, 555.34,
+ 554.31, 552.32, 550.27, 549.16, 548.49, 547.88, 548.78,
+ 550.24, 551.67, 551.31, 551.93, 551.53, 551.89, 553.29,
+ 554.4, 553.2, 553.44, 553.67, 554.37, 554.57, 556.3,
+ 556.29, 556.02, 558.05, 559.92, 562.96, 568.77, 572.72,
+ 575.24, 576.03, 578.42, 577.68, 577.29, 577.94, 579.38,
+ 579.3, 580.82, 580.71, 581.39, 582.26, 581.72, 582.77,
+ 584.13, 582.92, 583.36, 584.95, 586.37, 588.54, 590.12,
+ 592.44, 593.82, 595.31, 596.85, 600.32, 602.85, 603.35,
+ 604.07, 605.82, 608.73, 611.72, 615.34, 618.14, 621.87,
+ 627.14, 630.07, 634.23, 647.17, 656.21, 672.18, 678.83,
+ 680.1, 680.99, 682.88, 684.68, 684.95, 685.17, 684.53,
+ 686.93, 689.07, 693.18, 695.46, 699.14, 702.09, 704.31,
+ 703.55, 704.65, 706.2, 705.84, 708.42, 710.82, 710.9,
+ 712.22, 711.68, 710.96, 709.17, 709.11, 710.52, 710.92,
+ 710.29, 710.39, 712.34, 715.58, 718.59, 722.55, 724.48,
+ 725.54, 727.08, 729.85, 733.26, 735.33, 738.75, 739.87,
+ 741.29, 741.68, 742.93, 742.36, 741.9, 740.73, 739.73,
+ 737.5, 735.83, 736.48, 737.6, 737.48, 737.36, 737.82,
+ 738.36, 740.77, 742.14, 745.02, 748.76, 759.28, 806.64,
+ 821.9, 830.68, 838.91, 840.87, 841.74, 842.33, 840.74,
+ 842.21, 842.53, 842.65, 842.39, 842.37, 840.84, 837.97,
+ 836.14, 833.47, 829.37, 824.46, 815.77, 807.13, 798.05,
+ 794.13, 793.73, 797.47, 799.17, 799.45, 799.43, 801.37,
+ 804.68, 805.94, 807.01, 807.31, 806.52, 807.53, 807.8,
+ 808.13, 808.23, 808.96, 810.15, 811.24, 812.77, 815.44,
+ 822.84, 880.04, 903.74, 916.46, 914.46, 909.82, 900.71,
+ 891.64, 885.5, 882.21, 880.19, 877.76, 875.54, 873.93,
+ 873.65, 873.17, 872.8, 873.18, 872.9, 871.02, 872.09,
+ 873.18, 873.94, 874.14, 875.12, 874.98, 875.97, 878.3,
+ 879.09, 881.41, 883.08, 884.45, 886.91, 890.69, 893.03,
+ 896.12, 895.99, 895.52, 896.22, 898.36, 899.87, 902.24,
+ 903.83, 905.57, 907.3, 907.93, 908.93, 910.19, 911.14,
+ 911.09, 910.64, 909.85, 908.52, 908.59, 908.77, 908.3,
+ 909.63, 909.57, 909.69, 909.89, 910.87, 911.93, 913.26,
+ 910.56, 909.26, 907.51, 907.01, 903.15, 899.51, 896.13,
+ 891.23, 887.62, 878.85, 828.92, 816.5, 810.82, 807.03,
+ 805.94, 806.22, 804.56, 800.94, 798.5, 801.16, 803.25,
+ 802.11, 800.59, 798.12, 797.32, 793.64, 789.87, 784.84,
+ 780.49, 775.55, 768.06, 759.63, 751.54, 744.41, 740.87,
+ 739.98, 738.48, 739.8, 740.32, 740.68, 741.25, 741.49,
+ 743.72, 746.23, 747.79, 748.7, 747.64, 747.23, 744.96,
+ 742.78, 739.77, 738.2, 737.03, 734.36, 731.6, 729.05,
+ 727.67, 726.5, 725.29, 722.3, 721.14, 719.49, 718.68,
+ 716.9, 715.68, 714.85, 713.92, 713.06, 711.59, 710.95,
+ 710.41, 708.78, 707.27, 704.8, 703.57, 703.29, 703.2,
+ 700., 699.75, 698.52, 699.78, 697.98, 697.95, 698.39,
+ 697.63, 696.99, 695.69, 695.75, 694.48, 693.84, 693.19,
+ 691.81, 691.61, 690.94, 690.14, 689.07, 687., 687.17,
+ 686.39, 685.36, 683.87, 682.36, 681.32, 680.59, 679.51,
+ 678.19, 677.35, 676.67, 675.76, 674.28, 673.09, 671.99,
+ 670.67, 669.89, 669.61, 667.91, 668.1, 668.54, 667.8,
+ 667.95, 666.95, 666.6, 668.84, 671.79, 674.75, 675.92,
+ 677.7, 679.17, 680.22, 681.78, 685.39, 693.23, 708.73,
+ 714.75, 718.11, 721.52, 722.37, 723.91, 728.26, 733.1,
+ 735.11, 735.86, 738.2, 739.9, 741.91, 741.49, 742.73,
+ 743.26, 746.26, 747.02, 747.14, 747.6, 750.37, 752.27,
+ 754.26, 755.4, 756.56, 758.83, 760.09, 763.14, 769.96,
+ 868.51, 842.56, 831.87, 826.2, 824.78, 825.13, 824.46,
+ 824.49, 822.31, 819.51, 816.45, 815.65, 814.81, 812.46,
+ 811.08, 810.3, 810.7, 811.22, 811.16, 811.89, 811.5,
+ 811.06, 811.34, 812.02, 812.02, 812.47, 812.55, 812.16,
+ 813.27, 813.56, 814.07, 814.45, 816.07, 815.32, 815.67,
+ 816.27, 817.56, 819.61, 821.17, 823.21, 824.13, 826.27,
+ 826.42, 829.32, 829.11, 831.19, 832.28, 834.06, 834.29,
+ 835.7, 838.02, 840.66, 843.02, 847.21, 851.92, 857.38,
+ 861.37, 864.55, 871.87, 881.84, 887.77, 889.15, 892.39,
+ 892.78, 895., 894.22, 895.89, 895.86, 897.5, 898.89,
+ 899.05, 901.62, 909.32, 920.46, 930.03, 933.43, 937.76,
+ 938.55, 937.58, 938.08, 937.1, 939.3, 942.85, 945.1,
+ 948.51, 950.64, 952.18, 952.07, 950.09, 948.28, 947.02,
+ 947.34, 948.19, 949.17, 949.72, 950.16, 950.39, 952.27,
+ 956.18, 961.46, 964.01, 965.82, 969.02, 972.44, 973.32,
+ 974.82, 978.28, 979.99, 981.06, 977.71, 974.52, 970.06,
+ 966.43, 936.14, 908.86, 887.57, 882.02, 885.22, 889.05,
+ 890.27, 888.99, 883.81, 875.61, 828.59, 823.11, 821.06,
+ 809.36, 806.17, 803.03, 803.76, 807.2, 807.3, 804.63,
+ 800.05, 793.85, 786.96, 782.07, 777.23, 774.56, 764.18,
+ 758.46, 750.42, 744.78, 744.36, 743.2, 738.13, 734.44,
+ 733.63, 731.25, 729.33, 727.73, 728.78, 727.51, 726.11,
+ 725.7, 726.32, 724.41, 723.33, 722.63, 721.32, 719.95,
+ 719.02, 717.87, 716.05, 714.94, 714.09, 713.06, 711.55,
+ 712., 710.27, 709.08, 708.33, 708.65, 707.11, 706.45,
+ 703.75, 702.36, 701.23, 698.97, 697.42, 696.18, 695.65,
+ 694.71, 693.9, 693.24, 692.31, 691.95, 691.2, 690.11,
+ 688.56, 687.54, 686.38, 684.81, 684.12, 682.22, 680.83,
+ 678.84, 677.08, 675.59, 673.86, 672.5, 670.14, 668.5,
+ 667.7, 667.13, 666.12, 665.89, 663.79, 663.93, 661.3,
+ 659.08, 658.62, 658.06, 656.61, 654.77, 654.88, 654.88,
+ 653.58, 653.19, 652.16, 651.47, 650.38, 651.04, 649.77,
+ 649.09, 648.51, 648.44, 646.54, 644.74, 642.88, 641.44,
+ 639.71, 639.33, 640.44, 643.11, 645.5, 647.94, 650.39,
+ 654.14, 678.9, 678.41, 691.2, 695.49, 698.47, 700.93,
+ 699.92, 701.09, 705.92, 711., 714.59, 717.51, 720.62,
+ 724.31, 725.79, 727.61, 727.09, 728.91, 730.44, 732.69,
+ 732.03, 733.75, 734.12, 735.72, 737.21, 740.03, 741.72,
+ 741.85, 742.39, 744.49, 746.79, 749.31, 752.31, 757.04,
+ 760.91, 765.64, 771.15, 774.37, 776.49, 777.59, 780.14,
+ 783.41, 786.3, 787.61, 789.8, 791.74, 795.27, 797.59,
+ 799.7, 800.97, 802.71, 805.54, 815.6, 858.58, 874.78,
+ 873.57, 867., 865.54, 866.15, 868.77, 869.98, 870.53,
+ 870.78, 869.67, 870.31, 871.78, 875.22, 878.7, 881.56,
+ 884.38, 886.67, 887.75, 891.55, 913.62, 955.21, 990.17,
+ 1008.11, 1012.71, 1007.71, 996.73, 965.72, 969.24, 962.89,
+ 959.83, 959.48, 957.39, 957.49, 954.44, 954.38, 952.48,
+ 952.35, 952.33, 953.42, 950.73, 946.5, 942.19, 938.42,
+ 935.56, 933.79, 929.93, 928.2, 924.81, 922.1, 917.83,
+ 915.07, 913.64, 913.6, 913.98, 915.79, 918.96, 921.96,
+ 924.17, 926.51, 927.92, 930.49, 939.6, 992.93, 996.33,
+ 995.61, 986.67, 984.91, 978.89, 975.74, 973.59, 968.81,
+ 964.25, 958.72, 956., 953.83, 952.52, 954.41, 956.67,
+ 955.42, 954.97, 955.22, 955.5, 956.33, 957.85, 959.96,
+ 961.62, 964.88, 968.17, 989.02, 1029.1, 1021., 1010.99,
+ 1007.18, 1005.98, 1006.36, 1013.39, 1018.36, 1019.96, 1022.47,
+ 1022.35, 1020.13, 1018.48, 1016.53, 1013.05, 1009.64, 1008.71,
+ 1007.74, 1007.1, 1006.11, 1005.17, 1004.73, 1003.01, 1003.41,
+ 1003.52, 1004.91, 1007.26, 1010.03, 1009.85, 1008.62, 1007.79,
+ 1007.37, 1008.42, 1008.87, 1010.12, 1010.57, 1009.71, 1008.58,
+ 1006.36, 1003.25, 1004.28, 1006.14, 1007.67, 1008.05, 1009.66,
+ 1011.52, 1014.21, 1015.11, 1014.72, 1012.54, 1010.13, 1006.75,
+ 1003.62, 1001.32, 1001.62, 1001.33, 1002.23, 1003.08, 1003.59,
+ 1003.49, 1003.24, 1002.64, 1001.05, 999.58, 999.12, 1001.24,
+ 1003.8, 1007.11, 1009.11, 1012.08, 1015.57, 1017.79, 1019.29,
+ 1020.81, 1020.04, 1020.93, 1024.36, 1025.34, 1026.76, 1028.23,
+ 1029.26, 1030.84, 1032.71, 1032.68, 1029.94, 1027.82, 1018.96,
+ 971.81, 942.95, 927.57, 917.8, 904.53, 896.78, 885.84,
+ 858., 817.34, 818.48, 807.28, 807.99, 805.93, 800.14,
+ 794.68, 791.39, 785.13, 780.12, 773.27, 765.02, 757.6,
+ 753.22, 746.33, 735.41, 728.21, 716.94, 702.89, 696.62,
+ 691.11, 691.11, 686.7, 687.37, 686.25, 680.86, 679.,
+ 678., 677.05, 673.83, 671.15, 667.26, 665.32, 663.3,
+ 662.14, 659.84, 658.49, 657.95, 656.81, 655.87, 654.97,
+ 653.41, 651.74, 649.66, 647.65, 646.54, 644.8, 642.41,
+ 639.75, 636.66, 632.35, 628.2, 625.76, 624.07, 621.42,
+ 618.55, 615.53, 613.62, 611., 609.89, 609.62, 610.1,
+ 609., 609.21, 607.97, 606.61, 605.38, 603.06, 600.69,
+ 599.65, 597.96, 596.12, 594.65, 594.47, 592.38, 589.07,
+ 587.01, 584.41, 581.83, 580.12, 579.32, 577.8, 574.71,
+ 572.75, 571.23, 569.83, 567.65, 565., 564.25, 562.73,
+ 560.89, 559.59, 556.24, 551.06, 546.31, 543.25, 539.8,
+ 536.26, 533.89, 531.96, 531.38, 531.72, 530.49, 529.67,
+ 529.1, 527.82, 526.09, 524.83, 524.41, 525.32, 525.76,
+ 525.28, 525.19, 524.91, 526.08, 526.51, 526.38, 528.07,
+ 530.08, 533.36, 537.18, 539.55, 538.79, 539.08, 541.38,
+ 544.05, 547.97, 549.29, 551.22, 553.79, 556.81, 558.15,
+ 560.33, 563.39, 565.64, 567.39, 568.9, 570.17, 572.71,
+ 573.63, 575.44, 578.28, 582.9, 600.79, 629.24, 634.62,
+ 640.99, 649.41, 652.5, 656.76, 657.94, 659.94, 660.35,
+ 662.74, 665.89, 668.86, 671.34, 673.15, 677.1, 680.61,
+ 691.07, 730.78, 729.82, 727.54, 725.47, 726.07, 726.01,
+ 726.79, 726.37, 725.28, 723.97, 725.59, 726.19, 729.87,
+ 730.68, 732.7, 734.91, 735.32, 735.94, 738.32, 755.95,
+ 754.64, 758.67, 758.9, 751.45, 745.61, 738.64, 740.67,
+ 765.85, 824.1, 806.16, 801.28, 792.67, 792.76, 789.02,
+ 787.39, 787.13, 786.09, 782.57, 781.61, 782.22, 784.55,
+ 785.62, 788.1, 788.24, 788.26, 789.33, 790.75, 791.89,
+ 792.83, 793.45, 794.36, 795., 796.01, 796.11, 796.91,
+ 796.22, 798.07, 799.94, 803.29, 805.47, 807.52, 806.85,
+ 809.16, 811.18, 814.5, 814.04, 817.73, 821.1, 822.04,
+ 821.45, 822.83, 825.13, 826.89, 827.16, 825.25, 825.51,
+ 824.71, 824.86, 827.53, 829.51, 831.46, 832.77, 835.36,
+ 837.89, 839.49, 841.5, 843.97, 846.31, 847.36, 847.91,
+ 849.03, 850.47, 853.6, 856.93, 861.79, 866.03, 869.26,
+ 876.8, 876.58, 874.9, 873.47, 874.8, 876.65, 876.06,
+ 874.82, 874.84, 876.26, 876.22, 878.12, 879.37, 878.45,
+ 878.43, 878.02, 877.09, 876.08, 876.08, 875.49, 875.13,
+ 875.98, 877.08, 879.82, 881.98, 883.22, 885.01, 887.64,
+ 893.38, 901.03, 902.25, 902.35, 903.41, 905.52, 905.1,
+ 903.8, 904.37, 901.99, 899.59, 898.27, 897.19, 899.59,
+ 900.58, 900.69, 901.26, 903.83, 904.84, 905.38, 905.47,
+ 907.17, 908.09, 911.35, 912.52, 912.75, 915.55, 918.33,
+ 925.26, 932.88, 938.61, 944.27, 948., 948.7, 949.2,
+ 949.87, 953.36, 952.86, 952.83, 954.07, 955.33, 955.34,
+ 956.8, 956.88, 956.59, 955.59, 954.9, 954.57, 955.07,
+ 955.24, 956.52, 957.28, 958.36, 957.97, 958.6, 959.06,
+ 960.]
+ }
+
+
+@pytest.fixture
+def office_scenario_2_sensor_data():
+ return {
+ 'times': [8., 8.03333333, 8.06666667, 8.1, 8.13333333,
+ 8.16666667, 8.2, 8.23333333, 8.26666667, 8.3,
+ 8.33333333, 8.36666667, 8.4, 8.43333333, 8.46666667,
+ 8.5, 8.53333333, 8.56666667, 8.6, 8.63333333,
+ 8.66666667, 8.7, 8.73333333, 8.76666667, 8.8,
+ 8.83333333, 8.86666667, 8.9, 8.93333333, 8.96666667,
+ 9., 9.03333333, 9.06666667, 9.1, 9.13333333,
+ 9.16666667, 9.2, 9.23333333, 9.26666667, 9.3,
+ 9.33333333, 9.36666667, 9.4, 9.43333333, 9.46666667,
+ 9.5, 9.53333333, 9.56666667, 9.6, 9.63333333,
+ 9.66666667, 9.7, 9.73333333, 9.76666667, 9.8,
+ 9.83333333, 9.86666667, 9.9, 9.93333333, 9.96666667,
+ 10., 10.03333333, 10.06666667, 10.1, 10.13333333,
+ 10.16666667, 10.2, 10.23333333, 10.26666667, 10.3,
+ 10.33333333, 10.36666667, 10.4, 10.43333333, 10.46666667,
+ 10.5, 10.53333333, 10.56666667, 10.6, 10.63333333,
+ 10.66666667, 10.7, 10.73333333, 10.76666667, 10.8,
+ 10.83333333, 10.86666667, 10.9, 10.93333333, 10.96666667,
+ 11., 11.03333333, 11.06666667, 11.1, 11.13333333,
+ 11.16666667, 11.2, 11.23333333, 11.26666667, 11.3,
+ 11.33333333, 11.36666667, 11.4, 11.43333333, 11.46666667,
+ 11.5, 11.53333333, 11.56666667, 11.6, 11.63333333,
+ 11.66666667, 11.7, 11.73333333, 11.76666667, 11.8,
+ 11.83333333, 11.86666667, 11.9, 11.93333333, 11.96666667,
+ 12., 12.03333333, 12.06666667, 12.1, 12.13333333,
+ 12.16666667, 12.2, 12.23333333, 12.26666667, 12.3,
+ 12.33333333, 12.36666667, 12.4, 12.43333333, 12.46666667,
+ 12.5, 12.53333333, 12.56666667, 12.6, 12.63333333,
+ 12.66666667, 12.7, 12.73333333, 12.76666667, 12.8,
+ 12.83333333, 12.86666667, 12.9, 12.93333333, 12.96666667,
+ 13., 13.03333333, 13.06666667, 13.1, 13.13333333,
+ 13.16666667, 13.2, 13.23333333, 13.26666667, 13.3,
+ 13.33333333, 13.36666667, 13.4, 13.43333333, 13.46666667,
+ 13.5, 13.53333333, 13.56666667, 13.6, 13.63333333,
+ 13.66666667, 13.7, 13.73333333, 13.76666667, 13.8,
+ 13.83333333, 13.86666667, 13.9, 13.93333333, 13.96666667,
+ 14., 14.03333333, 14.06666667, 14.1, 14.13333333,
+ 14.16666667, 14.2, 14.23333333, 14.26666667, 14.3,
+ 14.33333333, 14.36666667, 14.4, 14.43333333, 14.46666667,
+ 14.5, 14.53333333, 14.56666667, 14.6, 14.63333333,
+ 14.66666667, 14.7, 14.73333333, 14.76666667, 14.8,
+ 14.83333333, 14.86666667, 14.9, 14.93333333, 14.96666667,
+ 15., 15.03333333, 15.06666667, 15.1, 15.13333333,
+ 15.16666667, 15.2, 15.23333333, 15.26666667, 15.3,
+ 15.33333333, 15.36666667, 15.4, 15.43333333, 15.46666667,
+ 15.5, 15.53333333, 15.56666667, 15.6, 15.63333333,
+ 15.66666667, 15.7, 15.73333333, 15.76666667, 15.8,
+ 15.83333333, 15.86666667, 15.9, 15.93333333, 15.96666667,
+ 16., 16.03333333, 16.06666667, 16.1, 16.13333333,
+ 16.16666667, 16.2, 16.23333333, 16.26666667, 16.3,
+ 16.33333333, 16.36666667, 16.4, 16.43333333, 16.46666667,
+ 16.5, 16.53333333, 16.56666667, 16.6, 16.63333333,
+ 16.66666667, 16.7, 16.73333333, 16.76666667, 16.8,
+ 16.83333333, 16.86666667, 16.9, 16.93333333, 16.96666667,
+ 17., 17.03333333, 17.06666667, 17.1, 17.13333333,
+ 17.16666667, 17.2, 17.23333333, 17.26666667, 17.3,
+ 17.33333333, 17.36666667, 17.4, 17.43333333, 17.46666667,
+ 17.5, 17.53333333, 17.56666667, 17.6, 17.63333333,
+ 17.66666667, 17.7, 17.73333333, 17.76666667, 17.8,
+ 17.83333333, 17.86666667, 17.9, 17.93333333, 17.96666667,
+ 18., 18.03333333, 18.06666667, 18.1, 18.13333333,
+ 18.16666667, 18.2, 18.23333333, 18.26666667, 18.3,
+ 18.33333333, 18.36666667, 18.4, 18.43333333, 18.46666667,
+ 18.5, 18.53333333, 18.56666667, 18.6, 18.63333333,
+ 18.66666667, 18.7, 18.73333333, 18.76666667, 18.8,
+ 18.83333333, 18.86666667, 18.9, 18.93333333, 18.96666667,
+ 19., 19.03333333, 19.06666667, 19.1, 19.13333333,
+ 19.16666667, 19.2, 19.23333333, 19.26666667, 19.3,
+ 19.33333333, 19.36666667, 19.4, 19.43333333, 19.46666667,
+ 19.5, 19.53333333, 19.56666667, 19.6, 19.63333333,
+ 19.66666667, 19.7, 19.73333333, 19.76666667, 19.8,
+ 19.83333333, 19.86666667, 19.9, 19.93333333, 19.96666667],
+ 'CO2': [445.18916667, 443.28416667, 440.90833333, 443.43083333,
+ 442.36583333, 444.09416667, 445.15166667, 445.65583333,
+ 447.9675, 447.99833333, 443.95, 442.54666667,
+ 439.31333333, 438.225, 441.4325, 441.19,
+ 443.80416667, 445.17333333, 446.49416667, 445.2775,
+ 452.07333333, 458.84416667, 470.82833333, 478.14666667,
+ 488.3375, 502.12583333, 522.05666667, 545.51916667,
+ 579.88083333, 616.245, 641.15416667, 676.28833333,
+ 701.9375, 720.46416667, 746.93333333, 765.83,
+ 779.09833333, 794.17333333, 810.62416667, 825.96666667,
+ 838.34, 854.355, 876.38166667, 886.20833333,
+ 898.40833333, 921.7175, 942.84833333, 953.81166667,
+ 978.95583333, 990.32083333, 1002.93083333, 1017.36083333,
+ 1029.37916667, 1041.02833333, 1051.8825, 1067.22,
+ 1073.53, 1079.73833333, 1093.73333333, 1104.81416667,
+ 1125.7975, 1141.115, 1151.04583333, 1160.0525,
+ 1176.36666667, 1193.665, 1180.10416667, 1015.33416667,
+ 864.74583333, 802.68083333, 774.455, 728.26833333,
+ 697.32583333, 676.06333333, 657.555, 640.56416667,
+ 606.53416667, 595.925, 577.7525, 553.605,
+ 530.2125, 524.96833333, 523.1525, 521.53416667,
+ 512.94416667, 505.29666667, 502.05583333, 502.46333333,
+ 505.2475, 507.47666667, 509.17083333, 511.3125,
+ 513.78, 520.3925, 529.13666667, 532.79833333,
+ 530.11083333, 523.96416667, 521.57416667, 519.05166667,
+ 510.29416667, 509.98166667, 514.34916667, 518.39583333,
+ 524.6025, 521.00333333, 519.44833333, 523.3125,
+ 527.46, 528.32583333, 526.355, 527.00833333,
+ 529.9675, 534.01916667, 535.61583333, 533.51416667,
+ 530.55166667, 522.34833333, 524.2425, 532.02083333,
+ 539.12666667, 538.83583333, 526.18583333, 517.50916667,
+ 507.99333333, 493.7025, 485.63166667, 479.52666667,
+ 471.58416667, 472.22583333, 468.20583333, 463.09916667,
+ 461.0375, 458.98, 456.35416667, 458.615,
+ 459.16166667, 462.9625, 465.55833333, 468.44833333,
+ 475.20666667, 480.3225, 488.96166667, 527.99181818,
+ 579.61333333, 606.59416667, 611.2175, 617.0225,
+ 635.92666667, 651.07916667, 676.64666667, 696.63,
+ 714.60333333, 729.92666667, 744.6525, 765.99583333,
+ 788.4925, 812.10583333, 832.75, 854.715,
+ 883.85166667, 895.59166667, 910.02666667, 924.37333333,
+ 944.51666667, 956.76916667, 971.44666667, 981.2725,
+ 993.64583333, 1004.37833333, 1021.56833333, 1035.155,
+ 1043.84916667, 1063.7225, 1070.96083333, 1065.62416667,
+ 1065.89333333, 1073.72333333, 1086.39333333, 1093.525,
+ 1120.085, 1189.26, 1202.875, 1218.55583333,
+ 1238.46416667, 1250.06, 1263.46, 1265.04333333,
+ 1270.10166667, 1281.61, 1294.92416667, 1304.21833333,
+ 1315.50583333, 1338.43416667, 1351.53083333, 1353.35916667,
+ 1364.0425, 1361.66583333, 1343.3225, 1329.69833333,
+ 1320.43583333, 1310.45, 1313.62166667, 1305.505,
+ 1313.36, 1307.45916667, 1289.97666667, 1286.87666667,
+ 1289.315, 1276.8075, 1268.87083333, 1266.07083333,
+ 1264.0475, 1271.76416667, 1268.46833333, 1244.53166667,
+ 1206.35416667, 1173.62666667, 1144.95833333, 1157.15166667,
+ 1194.38333333, 1198.275, 1196.0825, 1182.46583333,
+ 1167.85666667, 1150.36083333, 1132.83833333, 1108.08,
+ 1097.41583333, 1099.82333333, 1093.3775, 1086.7575,
+ 1086.875, 1083.80166667, 1075.48166667, 1059.92083333,
+ 1048.40416667, 1047.35, 1042.55166667, 1036.11333333,
+ 1026.88333333, 1022.6775, 1017.64666667, 1023.52083333,
+ 1021.01666667, 1017.255, 1004.57166667, 908.28,
+ 906.46083333, 979.21666667, 955.8475, 928.88416667,
+ 915.26583333, 914.13583333, 930.12166667, 923.34583333,
+ 920.95916667, 865.92416667, 860.18166667, 867.00333333,
+ 869.70833333, 871.37833333, 861.46666667, 862.92083333,
+ 850.37416667, 843.93333333, 839.65083333, 838.1425,
+ 839.79333333, 849.7425, 841.63583333, 820.79333333,
+ 824.95083333, 838.52, 853.84416667, 855.645,
+ 838.70416667, 818.07083333, 811.7225, 804.27083333,
+ 794.47333333, 790.60166667, 781.965, 788.55583333,
+ 779.63583333, 804.17916667, 836.93083333, 852.39166667,
+ 856.87, 858.07333333, 857.895, 856.51,
+ 856.74416667, 851.72083333, 849.56166667, 849.17,
+ 846.0125, 846.75583333, 844.77833333, 841.98916667,
+ 838.9925, 836.0375, 833.21083333, 832.63166667,
+ 830.8925, 825.92416667, 823.55083333, 823.72083333,
+ 818.21833333, 812.42166667, 810.16916667, 808.38833333,
+ 806.66333333, 803.0125, 800.16416667, 794.33,
+ 790.45, 790.35916667, 787.69666667, 783.31666667,
+ 780.48333333, 783.9625, 780.8675, 780.76166667,
+ 777.22833333, 774.97666667, 768.6975, 763.635,
+ 761.45333333, 757.805, 760.02166667, 762.13583333,
+ 761.64916667, 761.2175, 761.48416667, 757.53,
+ 754.45833333, 752.55083333, 752.12333333, 751.67916667,
+ 748.565, 744.34583333, 742.10333333, 737.64833333,
+ 731.04916667, 732.63583333, 726.8275, 726.21,
+ 726.94833333, 727.14, 726.7575, 728.93416667,
+ 729.88666667, 726.51166667, 724.84, 723.9075,
+ 722.99583333, 721.1125, 720.20416667, 721.06416667]}
+
+
+@ pytest.fixture
+def meeting_scenario_1_sensor_data():
+ return {
+ 'times': [9., 9.00277778, 9.00555556, 9.00833333, 9.01111111,
+ 9.01388889, 9.01666667, 9.01944444, 9.02222222, 9.025,
+ 9.02777778, 9.03055556, 9.03333333, 9.03611111, 9.03888889,
+ 9.04166667, 9.04444444, 9.04722222, 9.05, 9.05277778,
+ 9.05555556, 9.05833333, 9.06111111, 9.06388889, 9.06666667,
+ 9.06944444, 9.07222222, 9.075, 9.07777778, 9.08055556,
+ 9.08333333, 9.08611111, 9.08888889, 9.09166667, 9.09444444,
+ 9.09722222, 9.1, 9.10277778, 9.10555556, 9.10833333,
+ 9.11111111, 9.11388889, 9.11666667, 9.11944444, 9.12222222,
+ 9.125, 9.12777778, 9.13055556, 9.13333333, 9.13611111,
+ 9.13888889, 9.14166667, 9.14444444, 9.14722222, 9.15,
+ 9.15277778, 9.15555556, 9.15833333, 9.16111111, 9.16388889,
+ 9.16666667, 9.16944444, 9.17222222, 9.175, 9.17777778,
+ 9.18055556, 9.18333333, 9.18611111, 9.18888889, 9.19166667,
+ 9.19444444, 9.19722222, 9.2, 9.20277778, 9.20555556,
+ 9.20833333, 9.21111111, 9.21388889, 9.21666667, 9.21944444,
+ 9.22222222, 9.225, 9.22777778, 9.23055556, 9.23333333,
+ 9.23611111, 9.23888889, 9.24166667, 9.24444444, 9.24722222,
+ 9.25, 9.25277778, 9.25555556, 9.25833333, 9.26111111,
+ 9.26388889, 9.26666667, 9.26944444, 9.27222222, 9.275,
+ 9.27777778, 9.28055556, 9.28333333, 9.28611111, 9.28888889,
+ 9.29166667, 9.29444444, 9.29722222, 9.3, 9.30277778,
+ 9.30555556, 9.30833333, 9.31111111, 9.31388889, 9.31666667,
+ 9.31944444, 9.32222222, 9.325, 9.32777778, 9.33055556,
+ 9.33333333, 9.33611111, 9.33888889, 9.34166667, 9.34444444,
+ 9.34722222, 9.35, 9.35277778, 9.35555556, 9.35833333,
+ 9.36111111, 9.36388889, 9.36666667, 9.36944444, 9.37222222,
+ 9.375, 9.37777778, 9.38055556, 9.38333333, 9.38611111,
+ 9.38888889, 9.39166667, 9.39444444, 9.39722222, 9.4,
+ 9.40277778, 9.40555556, 9.40833333, 9.41111111, 9.41388889,
+ 9.41666667, 9.41944444, 9.42222222, 9.425, 9.42777778,
+ 9.43055556, 9.43333333, 9.43611111, 9.43888889, 9.44166667,
+ 9.44444444, 9.44722222, 9.45, 9.45277778, 9.45555556,
+ 9.45833333, 9.46111111, 9.46388889, 9.46666667, 9.46944444,
+ 9.47222222, 9.475, 9.47777778, 9.48055556, 9.48333333,
+ 9.48611111, 9.48888889, 9.49166667, 9.49444444, 9.49722222,
+ 9.5, 9.50277778, 9.50555556, 9.50833333, 9.51111111,
+ 9.51388889, 9.51666667, 9.51944444, 9.52222222, 9.525,
+ 9.52777778, 9.53055556, 9.53333333, 9.53611111, 9.53888889,
+ 9.54166667, 9.54444444, 9.54722222, 9.55, 9.55277778,
+ 9.55555556, 9.55833333, 9.56111111, 9.56388889, 9.56666667,
+ 9.56944444, 9.57222222, 9.575, 9.57777778, 9.58055556,
+ 9.58333333, 9.58611111, 9.58888889, 9.59166667, 9.59444444,
+ 9.59722222, 9.6, 9.60277778, 9.60555556, 9.60833333,
+ 9.61111111, 9.61388889, 9.61666667, 9.61944444, 9.62222222,
+ 9.625, 9.62777778, 9.63055556, 9.63333333, 9.63611111,
+ 9.63888889, 9.64166667, 9.64444444, 9.64722222, 9.65,
+ 9.65277778, 9.65555556, 9.65833333, 9.66111111, 9.66388889,
+ 9.66666667, 9.66944444, 9.67222222, 9.675, 9.67777778,
+ 9.68055556, 9.68333333, 9.68611111, 9.68888889, 9.69166667,
+ 9.69444444, 9.69722222, 9.7, 9.70277778, 9.70555556,
+ 9.70833333, 9.71111111, 9.71388889, 9.71666667, 9.71944444,
+ 9.72222222, 9.725, 9.72777778, 9.73055556, 9.73333333,
+ 9.73611111, 9.73888889, 9.74166667, 9.74444444, 9.74722222,
+ 9.75, 9.75277778, 9.75555556, 9.75833333, 9.76111111,
+ 9.76388889, 9.76666667, 9.76944444, 9.77222222, 9.775,
+ 9.77777778, 9.78055556, 9.78333333, 9.78611111, 9.78888889,
+ 9.79166667, 9.79444444, 9.79722222, 9.8, 9.80277778,
+ 9.80555556, 9.80833333, 9.81111111, 9.81388889, 9.81666667,
+ 9.81944444, 9.82222222, 9.825, 9.82777778, 9.83055556,
+ 9.83333333, 9.83611111, 9.83888889, 9.84166667, 9.84444444,
+ 9.84722222, 9.85, 9.85277778, 9.85555556, 9.85833333,
+ 9.86111111, 9.86388889, 9.86666667, 9.86944444, 9.87222222,
+ 9.875, 9.87777778, 9.88055556, 9.88333333, 9.88611111,
+ 9.88888889, 9.89166667, 9.89444444, 9.89722222, 9.9,
+ 9.90277778, 9.90555556, 9.90833333, 9.91111111, 9.91388889,
+ 9.91666667, 9.91944444, 9.92222222, 9.925, 9.92777778,
+ 9.93055556, 9.93333333, 9.93611111, 9.93888889, 9.94166667,
+ 9.94444444, 9.94722222, 9.95, 9.95277778, 9.95555556,
+ 9.95833333, 9.96111111, 9.96388889, 9.96666667, 9.96944444,
+ 9.97222222, 9.975, 9.97777778, 9.98055556, 9.98333333,
+ 9.98611111, 9.98888889, 9.99166667, 9.99444444, 9.99722222,
+ 10., 10.00277778, 10.00555556, 10.00833333, 10.01111111,
+ 10.01388889, 10.01666667, 10.01944444, 10.02222222, 10.025,
+ 10.02777778, 10.03055556, 10.03333333, 10.03611111, 10.03888889,
+ 10.04166667, 10.04444444, 10.04722222, 10.05, 10.05277778,
+ 10.05555556, 10.05833333, 10.06111111, 10.06388889, 10.06666667,
+ 10.06944444, 10.07222222, 10.075, 10.07777778, 10.08055556,
+ 10.08333333, 10.08611111, 10.08888889, 10.09166667, 10.09444444,
+ 10.09722222, 10.1, 10.10277778, 10.10555556, 10.10833333,
+ 10.11111111, 10.11388889, 10.11666667, 10.11944444, 10.12222222,
+ 10.125, 10.12777778, 10.13055556, 10.13333333, 10.13611111,
+ 10.13888889, 10.14166667, 10.14444444, 10.14722222, 10.15,
+ 10.15277778, 10.15555556, 10.15833333, 10.16111111, 10.16388889,
+ 10.16666667, 10.16944444, 10.17222222, 10.175, 10.17777778,
+ 10.18055556, 10.18333333, 10.18611111, 10.18888889, 10.19166667,
+ 10.19444444, 10.19722222, 10.2, 10.20277778, 10.20555556,
+ 10.20833333, 10.21111111, 10.21388889, 10.21666667, 10.21944444,
+ 10.22222222, 10.225, 10.22777778, 10.23055556, 10.23333333,
+ 10.23611111, 10.23888889, 10.24166667, 10.24444444, 10.24722222,
+ 10.25, 10.25277778, 10.25555556, 10.25833333, 10.26111111,
+ 10.26388889, 10.26666667, 10.26944444, 10.27222222, 10.275,
+ 10.27777778, 10.28055556, 10.28333333, 10.28611111, 10.28888889,
+ 10.29166667, 10.29444444, 10.29722222, 10.3, 10.30277778,
+ 10.30555556, 10.30833333, 10.31111111, 10.31388889, 10.31666667,
+ 10.31944444, 10.32222222, 10.325, 10.32777778, 10.33055556,
+ 10.33333333, 10.33611111, 10.33888889, 10.34166667, 10.34444444,
+ 10.34722222, 10.35, 10.35277778, 10.35555556, 10.35833333,
+ 10.36111111, 10.36388889, 10.36666667, 10.36944444, 10.37222222,
+ 10.375, 10.37777778, 10.38055556, 10.38333333, 10.38611111,
+ 10.38888889, 10.39166667, 10.39444444, 10.39722222, 10.4,
+ 10.40277778, 10.40555556, 10.40833333, 10.41111111, 10.41388889,
+ 10.41666667, 10.41944444, 10.42222222, 10.425, 10.42777778,
+ 10.43055556, 10.43333333, 10.43611111, 10.43888889, 10.44166667,
+ 10.44444444, 10.44722222, 10.45, 10.45277778, 10.45555556,
+ 10.45833333, 10.46111111, 10.46388889, 10.46666667, 10.46944444,
+ 10.47222222, 10.475, 10.47777778, 10.48055556, 10.48333333,
+ 10.48611111, 10.48888889, 10.49166667, 10.49444444, 10.49722222,
+ 10.5, 10.50277778, 10.50555556, 10.50833333, 10.51111111,
+ 10.51388889, 10.51666667, 10.51944444, 10.52222222, 10.525,
+ 10.52777778, 10.53055556, 10.53333333, 10.53611111, 10.53888889,
+ 10.54166667, 10.54444444, 10.54722222, 10.55, 10.55277778,
+ 10.55555556, 10.55833333, 10.56111111, 10.56388889, 10.56666667,
+ 10.56944444, 10.57222222, 10.575, 10.57777778, 10.58055556,
+ 10.58333333, 10.58611111, 10.58888889, 10.59166667, 10.59444444,
+ 10.59722222, 10.6, 10.60277778, 10.60555556, 10.60833333,
+ 10.61111111, 10.61388889, 10.61666667, 10.61944444, 10.62222222,
+ 10.625, 10.62777778, 10.63055556, 10.63333333, 10.63611111,
+ 10.63888889, 10.64166667, 10.64444444, 10.64722222, 10.65,
+ 10.65277778, 10.65555556, 10.65833333, 10.66111111, 10.66388889,
+ 10.66666667, 10.66944444, 10.67222222, 10.675, 10.67777778,
+ 10.68055556, 10.68333333, 10.68611111, 10.68888889, 10.69166667,
+ 10.69444444, 10.69722222, 10.7, 10.70277778, 10.70555556,
+ 10.70833333, 10.71111111, 10.71388889, 10.71666667, 10.71944444,
+ 10.72222222, 10.725, 10.72777778, 10.73055556, 10.73333333,
+ 10.73611111, 10.73888889, 10.74166667, 10.74444444, 10.74722222,
+ 10.75, 10.75277778, 10.75555556, 10.75833333, 10.76111111,
+ 10.76388889, 10.76666667, 10.76944444, 10.77222222, 10.775,
+ 10.77777778, 10.78055556, 10.78333333, 10.78611111, 10.78888889,
+ 10.79166667, 10.79444444, 10.79722222, 10.8, 10.80277778,
+ 10.80555556, 10.80833333, 10.81111111, 10.81388889, 10.81666667,
+ 10.81944444, 10.82222222, 10.825, 10.82777778, 10.83055556,
+ 10.83333333, 10.83611111, 10.83888889, 10.84166667, 10.84444444,
+ 10.84722222, 10.85, 10.85277778, 10.85555556, 10.85833333,
+ 10.86111111, 10.86388889, 10.86666667, 10.86944444, 10.87222222,
+ 10.875, 10.87777778, 10.88055556, 10.88333333, 10.88611111,
+ 10.88888889, 10.89166667, 10.89444444, 10.89722222, 10.9,
+ 10.90277778, 10.90555556, 10.90833333, 10.91111111, 10.91388889,
+ 10.91666667, 10.91944444, 10.92222222, 10.925, 10.92777778,
+ 10.93055556, 10.93333333, 10.93611111, 10.93888889, 10.94166667,
+ 10.94444444, 10.94722222, 10.95, 10.95277778, 10.95555556,
+ 10.95833333, 10.96111111, 10.96388889, 10.96666667, 10.96944444,
+ 10.97222222, 10.975, 10.97777778, 10.98055556, 10.98333333,
+ 10.98611111, 10.98888889, 10.99166667, 10.99444444, 10.99722222,
+ 11., 11.00277778, 11.00555556, 11.00833333, 11.01111111,
+ 11.01388889, 11.01666667, 11.01944444, 11.02222222, 11.025,
+ 11.02777778, 11.03055556, 11.03333333, 11.03611111, 11.03888889,
+ 11.04166667, 11.04444444, 11.04722222, 11.05, 11.05277778,
+ 11.05555556, 11.05833333, 11.06111111, 11.06388889, 11.06666667,
+ 11.06944444, 11.07222222, 11.075, 11.07777778, 11.08055556,
+ 11.08333333, 11.08611111, 11.08888889, 11.09166667, 11.09444444,
+ 11.09722222, 11.1, 11.10277778, 11.10555556, 11.10833333,
+ 11.11111111, 11.11388889, 11.11666667, 11.11944444, 11.12222222,
+ 11.125, 11.12777778, 11.13055556, 11.13333333, 11.13611111,
+ 11.13888889, 11.14166667, 11.14444444, 11.14722222, 11.15,
+ 11.15277778, 11.15555556, 11.15833333, 11.16111111, 11.16388889,
+ 11.16666667, 11.16944444, 11.17222222, 11.175, 11.17777778,
+ 11.18055556, 11.18333333, 11.18611111, 11.18888889, 11.19166667,
+ 11.19444444, 11.19722222, 11.2, 11.20277778, 11.20555556,
+ 11.20833333, 11.21111111, 11.21388889, 11.21666667, 11.21944444,
+ 11.22222222, 11.225, 11.22777778, 11.23055556, 11.23333333,
+ 11.23611111, 11.23888889, 11.24166667, 11.24444444, 11.24722222,
+ 11.25, 11.25277778, 11.25555556, 11.25833333, 11.26111111,
+ 11.26388889, 11.26666667, 11.26944444, 11.27222222, 11.275,
+ 11.27777778, 11.28055556, 11.28333333, 11.28611111, 11.28888889,
+ 11.29166667, 11.29444444, 11.29722222, 11.3, 11.30277778,
+ 11.30555556, 11.30833333, 11.31111111, 11.31388889, 11.31666667,
+ 11.31944444, 11.32222222, 11.325, 11.32777778, 11.33055556,
+ 11.33333333, 11.33611111, 11.33888889, 11.34166667, 11.34444444,
+ 11.34722222, 11.35, 11.35277778, 11.35555556, 11.35833333,
+ 11.36111111, 11.36388889, 11.36666667, 11.36944444, 11.37222222,
+ 11.375, 11.37777778, 11.38055556, 11.38333333, 11.38611111,
+ 11.38888889, 11.39166667, 11.39444444, 11.39722222, 11.4,
+ 11.40277778, 11.40555556, 11.40833333, 11.41111111, 11.41388889,
+ 11.41666667, 11.41944444, 11.42222222, 11.425, 11.42777778,
+ 11.43055556, 11.43333333, 11.43611111, 11.43888889, 11.44166667,
+ 11.44444444, 11.44722222, 11.45, 11.45277778, 11.45555556,
+ 11.45833333, 11.46111111, 11.46388889, 11.46666667, 11.46944444,
+ 11.47222222, 11.475, 11.47777778, 11.48055556, 11.48333333,
+ 11.48611111, 11.48888889, 11.49166667, 11.49444444, 11.49722222,
+ 11.5, 11.50277778, 11.50555556, 11.50833333, 11.51111111,
+ 11.51388889, 11.51666667, 11.51944444, 11.52222222, 11.525,
+ 11.52777778, 11.53055556, 11.53333333, 11.53611111, 11.53888889,
+ 11.54166667, 11.54444444, 11.54722222, 11.55, 11.55277778,
+ 11.55555556, 11.55833333, 11.56111111, 11.56388889, 11.56666667,
+ 11.56944444, 11.57222222, 11.575, 11.57777778, 11.58055556,
+ 11.58333333, 11.58611111, 11.58888889, 11.59166667, 11.59444444,
+ 11.59722222, 11.6, 11.60277778, 11.60555556, 11.60833333,
+ 11.61111111, 11.61388889, 11.61666667, 11.61944444, 11.62222222,
+ 11.625, 11.62777778, 11.63055556, 11.63333333, 11.63611111,
+ 11.63888889, 11.64166667, 11.64444444, 11.64722222, 11.65,
+ 11.65277778, 11.65555556, 11.65833333, 11.66111111, 11.66388889,
+ 11.66666667, 11.66944444, 11.67222222, 11.675, 11.67777778,
+ 11.68055556, 11.68333333, 11.68611111, 11.68888889, 11.69166667,
+ 11.69444444, 11.69722222, 11.7, 11.70277778, 11.70555556,
+ 11.70833333, 11.71111111, 11.71388889, 11.71666667, 11.71944444,
+ 11.72222222, 11.725, 11.72777778, 11.73055556, 11.73333333,
+ 11.73611111, 11.73888889, 11.74166667, 11.74444444, 11.74722222,
+ 11.75],
+ 'CO2': [559.95, 553.4, 550.48, 547.17, 544.37, 539.08, 534.37,
+ 528.86, 526.47, 523.8, 521.99, 522.47, 520.69, 520.69,
+ 521.85, 521.88, 523.06, 523.93, 524.32, 525.49, 526.21,
+ 527.18, 526.95, 527.9, 528.79, 529.38, 529.79, 530.96,
+ 532.21, 532.13, 531.83, 531.76, 532.64, 532.08, 530.71,
+ 529.65, 529.4, 528.87, 529.05, 530.7, 533.32, 546.27,
+ 575.03, 582.48, 583.71, 582.04, 577.32, 574.2, 574.06,
+ 574.15, 573.17, 574.68, 575.22, 574.99, 573.71, 572.49,
+ 571.63, 570.8, 570.46, 570.76, 569.41, 569.82, 569.41,
+ 568.21, 567.26, 568.1, 568.13, 568.59, 569.34, 568.55,
+ 569.05, 567.99, 567.79, 568.26, 568.55, 569.2, 569.87,
+ 570., 570.07, 570.34, 570.11, 570.58, 571.06, 571.45,
+ 571.99, 572.89, 572.96, 573.39, 573.94, 573.76, 573.69,
+ 574.11, 574.44, 575.35, 577.15, 576.61, 577.17, 577.92,
+ 577.87, 578.54, 578.78, 578.97, 579.01, 579.6, 580.74,
+ 583.15, 583.41, 584.18, 584.79, 586.21, 586.42, 587.23,
+ 587.71, 588.58, 589.91, 591.72, 592.95, 594.4, 596.01,
+ 597.72, 598.58, 598.99, 598.44, 599.23, 599.77, 600.71,
+ 601.31, 603.11, 604.45, 604.99, 605.72, 606.54, 607.,
+ 607.38, 608.3, 610.37, 611.77, 612.87, 613.55, 615.34,
+ 615.91, 617.76, 619.38, 622.04, 622.68, 623.65, 623.45,
+ 624.27, 624.7, 628.28, 630.74, 632.26, 634.77, 637.98,
+ 638.7, 639.32, 640.01, 639.71, 640.29, 641.15, 640.88,
+ 641.96, 642.76, 642.16, 642.93, 643.11, 643.36, 643.85,
+ 644.04, 646.15, 646.71, 648.26, 648.85, 649.08, 648.79,
+ 649.23, 648.51, 648.95, 648.23, 648.22, 647.68, 647.41,
+ 646.99, 647.18, 646.34, 645.42, 644.75, 643.25, 642.89,
+ 643.2, 643.41, 643.45, 643.1, 643.37, 643.49, 643.55,
+ 643.29, 643.62, 644.42, 643.85, 643.4, 643.5, 644.3,
+ 643.61, 644.64, 645.2, 644.52, 645.44, 645.52, 644.98,
+ 645.99, 645.99, 646.87, 647.39, 648.9, 649.92, 650.88,
+ 652.91, 653.68, 654.22, 655.48, 655.04, 654.92, 655.31,
+ 655.06, 656.52, 657.28, 658.98, 659.27, 660.03, 659.61,
+ 659.78, 660.11, 659.34, 659.58, 658.95, 659.48, 659.89,
+ 660.58, 660.24, 660.45, 659.76, 658.85, 660.13, 660.55,
+ 661.13, 662.18, 662.99, 662.63, 663.26, 663.79, 665.57,
+ 666.7, 668.08, 668.52, 669.93, 671.35, 672.44, 672.97,
+ 673.63, 674.1, 674.16, 674.04, 673.7, 674.52, 674.43,
+ 674.42, 674.29, 674.44, 674.51, 674.35, 674.35, 674.55,
+ 674.04, 674.61, 675.87, 677.64, 678.45, 679.58, 679.84,
+ 680.06, 680.76, 682.05, 683.25, 685.53, 685.95, 686.61,
+ 686.83, 685.63, 685.71, 685.56, 684.87, 686.04, 687.14,
+ 686.99, 686.43, 685.92, 685.5, 684.88, 685.07, 683.68,
+ 683.18, 682.16, 681.1, 680.27, 680.2, 680.02, 679.52,
+ 678.64, 678.37, 677.97, 677.08, 676., 674.99, 674.47,
+ 674.12, 673.76, 673.34, 673.5, 673.35, 672.94, 672.32,
+ 672.09, 671.3, 670.52, 669.16, 668.1, 668.71, 667.43,
+ 666.17, 666.35, 666.15, 665.76, 665.62, 664.28, 663.44,
+ 661.49, 661.65, 660.23, 659.52, 659.5, 659.15, 658.84,
+ 657.33, 656.55, 655.89, 655.91, 655.38, 654.81, 655.23,
+ 655.14, 655.26, 655.25, 654.67, 654.27, 655.03, 655.35,
+ 655.84, 654.94, 654.29, 654.47, 655.9, 656.4, 656.66,
+ 657.36, 657.39, 656.81, 656.9, 657.12, 657.14, 655.85,
+ 654.25, 654.09, 653.13, 652.11, 651.16, 650.9, 650.93,
+ 650.4, 650., 649.5, 646.84, 646.72, 644.88, 644.15,
+ 644.48, 644.36, 644.51, 644.04, 644.22, 643.55, 642.62,
+ 642.04, 641.36, 640.99, 642.2, 643.73, 644., 644.29,
+ 644.7, 644.52, 643.88, 644.02, 642.33, 641.81, 641.81,
+ 640.83, 640.85, 640.57, 640.17, 639.39, 639.05, 638.73,
+ 638.58, 638.99, 638.52, 638.02, 638.15, 638.17, 638.52,
+ 638.85, 639., 638.81, 638.09, 638.23, 638.73, 638.52,
+ 637.74, 637.8, 636.88, 637.6, 638.15, 637.58, 638.14,
+ 638.38, 637.68, 637.28, 637.35, 636.06, 635.68, 636.07,
+ 636.75, 637.04, 636.9, 636.05, 635.8, 636.62, 636.44,
+ 636.82, 636.74, 635.99, 636.28, 636.79, 636.95, 636.07,
+ 635.88, 635.02, 634.7, 634.54, 635.55, 635.26, 635.57,
+ 634.76, 634.27, 634.04, 632.88, 631.9, 631.83, 631.49,
+ 630.53, 630.74, 630.35, 630.54, 630.75, 630.7, 631.11,
+ 631.59, 632.32, 631.84, 631.02, 630.19, 629.72, 629.74,
+ 629.61, 628.75, 626.93, 626.96, 625.53, 624.44, 623.75,
+ 624.08, 623.78, 624.92, 625.96, 626.83, 626.63, 627.39,
+ 628.2, 628.97, 630.15, 632.38, 633.32, 634.56, 634.67,
+ 634.4, 635.68, 635.38, 636.03, 637.16, 637.75, 639.29,
+ 640.44, 641.25, 642.03, 643.19, 644.42, 645.29, 646.55,
+ 646.77, 648.34, 649.64, 651.85, 653.81, 656.06, 657.69,
+ 658.7, 659.82, 662.53, 663.42, 665.14, 666.73, 667.78,
+ 668.53, 668.81, 669.5, 670.35, 670.79, 672.39, 672.72,
+ 673.15, 674.67, 676.78, 679.22, 681.21, 683.58, 686.24,
+ 688.35, 689.36, 691.18, 692.95, 694.44, 695.18, 695.84,
+ 695.86, 697.04, 697.74, 699.21, 702.17, 702.98, 703.68,
+ 704.91, 705.91, 708.69, 709.29, 711.03, 710.54, 711.54,
+ 710.59, 712.1, 713.33, 713.94, 714.92, 717.04, 718.,
+ 718.98, 721.37, 724.36, 724.95, 727.67, 729.46, 730.88,
+ 731.84, 732.96, 734.17, 735.39, 736.21, 738.26, 739.76,
+ 741.61, 743.63, 746.67, 747.24, 748.41, 750.44, 753.1,
+ 755.25, 758.13, 761.04, 764.13, 766.39, 768.43, 769.96,
+ 772.47, 774.25, 774.53, 777.34, 780.73, 782.56, 784.88,
+ 787.4, 790.02, 791.92, 794.02, 794.74, 795.68, 795.74,
+ 796.96, 798.21, 800.11, 803.3, 804.21, 805.46, 806.63,
+ 808.48, 808.88, 809.74, 810.55, 812.09, 811.61, 811.62,
+ 813.54, 814.8, 815.41, 816.66, 817.45, 819.01, 820.99,
+ 821.15, 821.34, 822.64, 823.3, 826.24, 828.31, 831.19,
+ 834.19, 839.79, 844.96, 851.49, 856.67, 860.38, 861.91,
+ 860.74, 862.73, 863.66, 867.48, 871.32, 874.03, 876.73,
+ 878.8, 882.32, 884.77, 886.02, 887.84, 890.76, 891.28,
+ 893.86, 894.12, 895.82, 897.08, 898.25, 900.36, 902.82,
+ 904.8, 906.62, 908.34, 910.29, 911.11, 912.81, 913.83,
+ 915.64, 918.44, 919.47, 921.1, 922.36, 923.78, 924.47,
+ 925.3, 926.78, 928.91, 930.43, 931., 930.96, 932.98,
+ 933.52, 933.74, 933.96, 934.68, 934.37, 935.12, 936.44,
+ 937.65, 937.83, 940.79, 943.5, 945.48, 948.53, 949.38,
+ 950.66, 951.4, 953.04, 953.86, 955.01, 956.18, 956.94,
+ 957.7, 958.04, 959.63, 961.38, 962.88, 964.31, 966.32,
+ 967.84, 968.3, 970.02, 971.69, 973.42, 974.3, 974.54,
+ 975.92, 976.9, 978.42, 980.5, 982.65, 984.1, 984.64,
+ 985.53, 986.85, 989.24, 990.44, 992.32, 994.8, 996.93,
+ 999.18, 1001.51, 1002.68, 1003.6, 1004.25, 1005.35, 1005.44,
+ 1005.67, 1005.97, 1005.09, 1003.82, 1003.98, 1003.72, 1003.46,
+ 1002.2, 1001.58, 1001.07, 999.93, 998.89, 996.87, 994.45,
+ 990.78, 986.89, 983.57, 980.29, 975.59, 968.67, 963.9,
+ 956.11, 940.84, 919.23, 907.14, 896.76, 891.03, 884.69,
+ 880.7, 875.31, 871.64, 870.65, 869.94, 866.4, 861.54,
+ 856.81, 851.32, 845.79, 836.13, 820.31, 817., 813.53,
+ 812.95, 809.66, 805.8, 803.28, 800.13, 797.25, 795.54,
+ 793.2, 790.9, 788.11, 784.53, 782.65, 780.65, 778.57,
+ 775.8, 774.24, 771.24, 767.54, 764.99, 761.25, 758.83,
+ 757.02, 754.23, 752.6, 745.45, 742.69, 737.67, 736.61,
+ 734.11, 730.2, 726.81, 724.49, 721.34, 718.54, 715.28,
+ 712.68, 708.59, 706.31, 702.85, 700.36, 697.1, 695.48,
+ 692.35, 690.22, 688.15, 686.17, 684.28, 683.25, 681.01,
+ 678.83, 677.91, 676.06, 675.45, 674.16, 671.36, 669.51,
+ 666.81, 664.64, 662.9, 661., 658.79, 655.92, 654.54,
+ 653.54, 652.76, 650.67, 648.96, 646.95, 645.01, 643.48,
+ 642.32, 640.77, 638.58, 636.44, 634.92, 632.4, 630.58,
+ 629.26, 628.01, 627.24, 626.31, 624.57, 623.72, 623.42,
+ 622.74, 620.51, 617.23, 616.15, 615.1, 614.05, 611.85,
+ 611.63, 611.5, 610.22, 609.3, 608.34, 608.18, 607.76,
+ 606.99, 606.35, 607.4, 608.07, 607.69, 607.58, 606.73,
+ 606.27, 606.18, 605.22, 605.34, 604.77, 604.51, 604.05,
+ 602.73, 601.72, 601.09, 600.28, 599.29, 599.12, 597.76,
+ 598.8, 597.31, 596.99, 595.74, 595.13, 594.28, 593.87,
+ 592.92, 593.06, 593.72, 592.69, 593.03, 592.63, 592.33,
+ 590.5, 590.8, 590.1, 590.67, 591.35, 592.71, 592.84,
+ 594.99, 597.52, 600.5, 602.64, 602.75, 603.33, 602.96,
+ 601.52, 602.44, 602.33, 602.46, 603.49, 603.17, 603.8,
+ 604.31, 604.55, 603.69, 602.63, 600.71, 600.74, 600.57,
+ 600.39, 599.08, 598., 596.63, 595.47, 594.89, 593.18,
+ 593.09, 593.08, 591.41, 591.15, 590.51, 589.01, 589.61,
+ 589.38, 589.14, 588.71, 588.69, 588.71, 589.17, 588.95,
+ 587.18, 586.74, 586.53, 586.13, 584.84, 584.47, 584.64,
+ 583.42, 583.63, 582.24, 581.38, 580.49, 580.12, 580.47,
+ 579.04, 578.18, 577.19, 577.19]
+ }
+
+
+@ pytest.fixture
+def meeting_scenario_2_sensor_data():
+ return {
+ 'times': [13.666667, 13.669444, 13.672222, 13.675, 13.677778, 13.680556,
+ 13.683333, 13.686111, 13.688889, 13.691667, 13.694444, 13.697222,
+ 13.7, 13.702778, 13.705556, 13.708333, 13.711111, 13.713889,
+ 13.716667, 13.719444, 13.722222, 13.725, 13.727778, 13.730556,
+ 13.733333, 13.736111, 13.738889, 13.741667, 13.744444, 13.747222,
+ 13.75, 13.752778, 13.755556, 13.758333, 13.761111, 13.763889,
+ 13.766667, 13.769444, 13.772222, 13.775, 13.777778, 13.780556,
+ 13.783333, 13.786111, 13.788889, 13.791667, 13.794444, 13.797222,
+ 13.8, 13.802778, 13.805556, 13.808333, 13.811111, 13.813889,
+ 13.816667, 13.819444, 13.822222, 13.825, 13.827778, 13.830556,
+ 13.833333, 13.836111, 13.838889, 13.841667, 13.844444, 13.847222,
+ 13.85, 13.852778, 13.855556, 13.858333, 13.861111, 13.863889,
+ 13.866667, 13.869444, 13.872222, 13.875, 13.877778, 13.880556,
+ 13.883333, 13.886111, 13.888889, 13.891667, 13.894444, 13.897222,
+ 13.9, 13.902778, 13.905556, 13.908333, 13.911111, 13.913889,
+ 13.916667, 13.919444, 13.922222, 13.925, 13.927778, 13.930556,
+ 13.933333, 13.936111, 13.938889, 13.941667, 13.944444, 13.947222,
+ 13.95, 13.952778, 13.955556, 13.958333, 13.961111, 13.963889,
+ 13.966667, 13.969444, 13.972222, 13.975, 13.977778, 13.980556,
+ 13.983333, 13.986111, 13.988889, 13.991667, 13.994444, 13.997222,
+ 14., 14.002778, 14.005556, 14.008333, 14.011111, 14.013889,
+ 14.016667, 14.019444, 14.022222, 14.025, 14.027778, 14.030556,
+ 14.033333, 14.036111, 14.038889, 14.041667, 14.044444, 14.047222,
+ 14.05, 14.052778, 14.055556, 14.058333, 14.061111, 14.063889,
+ 14.066667, 14.069444, 14.072222, 14.075, 14.077778, 14.080556,
+ 14.083333, 14.086111, 14.088889, 14.091667, 14.094444, 14.097222,
+ 14.1, 14.102778, 14.105556, 14.108333, 14.111111, 14.113889,
+ 14.116667, 14.119444, 14.122222, 14.125, 14.127778, 14.130556,
+ 14.133333, 14.136111, 14.138889, 14.141667, 14.144444, 14.147222,
+ 14.15, 14.152778, 14.155556, 14.158333, 14.161111, 14.163889,
+ 14.166667, 14.169444, 14.172222, 14.175, 14.177778, 14.180556,
+ 14.183333, 14.186111, 14.188889, 14.191667, 14.194444, 14.197222,
+ 14.2, 14.202778, 14.205556, 14.208333, 14.211111, 14.213889,
+ 14.216667, 14.219444, 14.222222, 14.225, 14.227778, 14.230556,
+ 14.233333, 14.236111, 14.238889, 14.241667, 14.244444, 14.247222,
+ 14.25, 14.252778, 14.255556, 14.258333, 14.261111, 14.263889,
+ 14.266667, 14.269444, 14.272222, 14.275, 14.277778, 14.280556,
+ 14.283333, 14.286111, 14.288889, 14.291667, 14.294444, 14.297222,
+ 14.3, 14.302778, 14.305556, 14.308333, 14.311111, 14.313889,
+ 14.316667, 14.319444, 14.322222, 14.325, 14.327778, 14.330556,
+ 14.333333, 14.336111, 14.338889, 14.341667, 14.344444, 14.347222,
+ 14.35, 14.352778, 14.355556, 14.358333, 14.361111, 14.363889,
+ 14.366667, 14.369444, 14.372222, 14.375, 14.377778, 14.380556,
+ 14.383333, 14.386111, 14.388889, 14.391667, 14.394444, 14.397222,
+ 14.4, 14.402778, 14.405556, 14.408333, 14.411111, 14.413889,
+ 14.416667, 14.419444, 14.422222, 14.425, 14.427778, 14.430556,
+ 14.433333, 14.436111, 14.438889, 14.441667, 14.444444, 14.447222,
+ 14.45, 14.452778, 14.455556, 14.458333, 14.461111, 14.463889,
+ 14.466667, 14.469444, 14.472222, 14.475, 14.477778, 14.480556,
+ 14.483333, 14.486111, 14.488889, 14.491667, 14.494444, 14.497222,
+ 14.5, 14.502778, 14.505556, 14.508333, 14.511111, 14.513889,
+ 14.516667, 14.519444, 14.522222, 14.525, 14.527778, 14.530556,
+ 14.533333, 14.536111, 14.538889, 14.541667, 14.544444, 14.547222,
+ 14.55, 14.552778, 14.555556, 14.558333, 14.561111, 14.563889,
+ 14.566667, 14.569444, 14.572222, 14.575, 14.577778, 14.580556,
+ 14.583333, 14.586111, 14.588889, 14.591667, 14.594444, 14.597222,
+ 14.6, 14.602778, 14.605556, 14.608333, 14.611111, 14.613889,
+ 14.616667, 14.619444, 14.622222, 14.625, 14.627778, 14.630556,
+ 14.633333, 14.636111, 14.638889, 14.641667, 14.644444, 14.647222,
+ 14.65, 14.652778, 14.655556, 14.658333, 14.661111, 14.663889,
+ 14.666667, 14.669444, 14.672222, 14.675, 14.677778, 14.680556,
+ 14.683333, 14.686111, 14.688889, 14.691667, 14.694444, 14.697222,
+ 14.7, 14.702778, 14.705556, 14.708333, 14.711111, 14.713889,
+ 14.716667, 14.719444, 14.722222, 14.725, 14.727778, 14.730556,
+ 14.733333, 14.736111, 14.738889, 14.741667, 14.744444, 14.747222,
+ 14.75, 14.752778, 14.755556, 14.758333, 14.761111, 14.763889,
+ 14.766667, 14.769444, 14.772222, 14.775, 14.777778, 14.780556,
+ 14.783333, 14.786111, 14.788889, 14.791667, 14.794444, 14.797222,
+ 14.8, 14.802778, 14.805556, 14.808333, 14.811111, 14.813889,
+ 14.816667, 14.819444, 14.822222, 14.825, 14.827778, 14.830556,
+ 14.833333, 14.836111, 14.838889, 14.841667, 14.844444, 14.847222,
+ 14.85, 14.852778, 14.855556, 14.858333, 14.861111, 14.863889,
+ 14.866667, 14.869444, 14.872222, 14.875, 14.877778, 14.880556,
+ 14.883333, 14.886111, 14.888889, 14.891667, 14.894444, 14.897222,
+ 14.9, 14.902778, 14.905556, 14.908333, 14.911111, 14.913889,
+ 14.916667, 14.919444, 14.922222, 14.925, 14.927778, 14.930556,
+ 14.933333, 14.936111, 14.938889, 14.941667, 14.944444, 14.947222,
+ 14.95, 14.952778, 14.955556, 14.958333, 14.961111, 14.963889,
+ 14.966667, 14.969444, 14.972222, 14.975, 14.977778, 14.980556,
+ 14.983333, 14.986111, 14.988889, 14.991667, 14.994444, 14.997222,
+ 15., 15.002778, 15.005556, 15.008333, 15.011111, 15.013889,
+ 15.016667, 15.019444, 15.022222, 15.025, 15.027778, 15.030556,
+ 15.033333, 15.036111, 15.038889, 15.041667, 15.044444, 15.047222,
+ 15.05, 15.052778, 15.055556, 15.058333, 15.061111, 15.063889,
+ 15.066667, 15.069444, 15.072222, 15.075, 15.077778, 15.080556,
+ 15.083333, 15.086111, 15.088889, 15.091667, 15.094444, 15.097222,
+ 15.1, 15.102778, 15.105556, 15.108333, 15.111111, 15.113889,
+ 15.116667, 15.119444, 15.122222, 15.125, 15.127778, 15.130556,
+ 15.133333, 15.136111, 15.138889, 15.141667, 15.144444, 15.147222,
+ 15.15, 15.152778, 15.155556, 15.158333, 15.161111, 15.163889,
+ 15.166667, 15.169444, 15.172222, 15.175, 15.177778, 15.180556,
+ 15.183333, 15.186111, 15.188889, 15.191667, 15.194444, 15.197222,
+ 15.2, 15.202778, 15.205556, 15.208333, 15.211111, 15.213889,
+ 15.216667, 15.219444, 15.222222, 15.225, 15.227778, 15.230556,
+ 15.233333, 15.236111, 15.238889, 15.241667, 15.244444, 15.247222,
+ 15.25, 15.252778, 15.255556, 15.258333, 15.261111, 15.263889,
+ 15.266667, 15.269444, 15.272222, 15.275, 15.277778, 15.280556,
+ 15.283333, 15.286111, 15.288889, 15.291667, 15.294444, 15.297222,
+ 15.3, 15.302778, 15.305556, 15.308333, 15.311111, 15.313889,
+ 15.316667, 15.319444, 15.322222, 15.325, 15.327778, 15.330556,
+ 15.333333, 15.336111, 15.338889, 15.341667, 15.344444, 15.347222,
+ 15.35, 15.352778, 15.355556, 15.358333, 15.361111, 15.363889,
+ 15.366667, 15.369444, 15.372222, 15.375, 15.377778, 15.380556,
+ 15.383333, 15.386111, 15.388889, 15.391667, 15.394444, 15.397222,
+ 15.4, 15.402778, 15.405556, 15.408333, 15.411111, 15.413889,
+ 15.416667, 15.419444, 15.422222, 15.425, 15.427778, 15.430556,
+ 15.433333, 15.436111, 15.438889, 15.441667, 15.444444, 15.447222,
+ 15.45, 15.452778, 15.455556, 15.458333, 15.461111, 15.463889,
+ 15.466667, 15.469444, 15.472222, 15.475, 15.477778, 15.480556,
+ 15.483333, 15.486111, 15.488889, 15.491667, 15.494444, 15.497222,
+ 15.5, 15.502778, 15.505556, 15.508333, 15.511111, 15.513889,
+ 15.516667, 15.519444, 15.522222, 15.525, 15.527778, 15.530556,
+ 15.533333, 15.536111, 15.538889, 15.541667, 15.544444, 15.547222,
+ 15.55, 15.552778, 15.555556, 15.558333, 15.561111, 15.563889,
+ 15.566667, 15.569444, 15.572222, 15.575, 15.577778, 15.580556,
+ 15.583333, 15.586111, 15.588889, 15.591667, 15.594444, 15.597222,
+ 15.6, 15.602778, 15.605556, 15.608333, 15.611111, 15.613889,
+ 15.616667, 15.619444, 15.622222, 15.625, 15.627778, 15.630556,
+ 15.633333, 15.636111, 15.638889, 15.641667, 15.644444, 15.647222,
+ 15.65, 15.652778, 15.655556, 15.658333, 15.661111, 15.663889,
+ 15.666667, 15.669444, 15.672222, 15.675, 15.677778, 15.680556,
+ 15.683333, 15.686111, 15.688889, 15.691667, 15.694444, 15.697222,
+ 15.7, 15.702778, 15.705556, 15.708333, 15.711111, 15.713889,
+ 15.716667, 15.719444, 15.722222, 15.725, 15.727778, 15.730556,
+ 15.733333, 15.736111, 15.738889, 15.741667, 15.744444, 15.747222,
+ 15.75, 15.752778, 15.755556, 15.758333, 15.761111, 15.763889,
+ 15.766667, 15.769444, 15.772222, 15.775, 15.777778, 15.780556,
+ 15.783333, 15.786111, 15.788889, 15.791667, 15.794444, 15.797222,
+ 15.8, 15.802778, 15.805556, 15.808333, 15.811111, 15.813889,
+ 15.816667, 15.819444, 15.822222, 15.825, 15.827778, 15.830556,
+ 15.833333, 15.836111, 15.838889, 15.841667, 15.844444, 15.847222,
+ 15.85, 15.852778, 15.855556, 15.858333, 15.861111, 15.863889,
+ 15.866667, 15.869444, 15.872222, 15.875, 15.877778, 15.880556,
+ 15.883333, 15.886111, 15.888889, 15.891667, 15.894444, 15.897222,
+ 15.9, 15.902778, 15.905556, 15.908333, 15.911111, 15.913889,
+ 15.916667, 15.919444, 15.922222, 15.925, 15.927778, 15.930556,
+ 15.933333, 15.936111, 15.938889, 15.941667, 15.944444, 15.947222,
+ 15.95, 15.952778, 15.955556, 15.958333, 15.961111, 15.963889,
+ 15.966667, 15.969444, 15.972222, 15.975, 15.977778, 15.980556,
+ 15.983333, 15.986111, 15.988889, 15.991667, 15.994444, 15.997222,
+ 16., 16.002778, 16.005556, 16.008333, 16.011111, 16.013889,
+ 16.016667, 16.019444, 16.022222, 16.025, 16.027778, 16.030556,
+ 16.033333, 16.036111, 16.038889, 16.041667, 16.044444, 16.047222,
+ 16.05, 16.052778, 16.055556, 16.058333, 16.061111, 16.063889,
+ 16.066667, 16.069444, 16.072222, 16.075, 16.077778, 16.080556,
+ 16.083333, 16.086111, 16.088889, 16.091667, 16.094444, 16.097222,
+ 16.1, 16.102778, 16.105556, 16.108333, 16.111111, 16.113889,
+ 16.116667, 16.119444, 16.122222, 16.125, 16.127778, 16.130556,
+ 16.133333, 16.136111, 16.138889, 16.141667, 16.144444, 16.147222,
+ 16.15, 16.152778, 16.155556, 16.158333, 16.161111, 16.163889,
+ 16.166667, 16.169444, 16.172222, 16.175, 16.177778, 16.180556,
+ 16.183333, 16.186111, 16.188889, 16.191667, 16.194444, 16.197222,
+ 16.2, 16.202778, 16.205556, 16.208333, 16.211111, 16.213889,
+ 16.216667, 16.219444, 16.222222, 16.225, 16.227778, 16.230556,
+ 16.233333, 16.236111, 16.238889, 16.241667, 16.244444, 16.247222,
+ 16.25, 16.252778, 16.255556, 16.258333, 16.261111, 16.263889,
+ 16.266667, 16.269444, 16.272222, 16.275, 16.277778, 16.280556,
+ 16.283333, 16.286111, 16.288889, 16.291667, 16.294444, 16.297222,
+ 16.3, 16.302778, 16.305556, 16.308333, 16.311111, 16.313889,
+ 16.316667, 16.319444, 16.322222, 16.325, 16.327778, 16.330556,
+ 16.333333, 16.336111, 16.338889, 16.341667, 16.344444, 16.347222,
+ 16.35, 16.352778, 16.355556, 16.358333, 16.361111, 16.363889,
+ 16.366667, 16.369444, 16.372222, 16.375, 16.377778, 16.380556,
+ 16.383333, 16.386111, 16.388889, 16.391667, 16.394444, 16.397222,
+ 16.4, 16.402778, 16.405556, 16.408333, 16.411111, 16.413889,
+ 16.416667, 16.419444, 16.422222, 16.425, 16.427778, 16.430556,
+ 16.433333, 16.436111, 16.438889, 16.441667, 16.444444, 16.447222,
+ 16.45, 16.452778, 16.455556, 16.458333, 16.461111, 16.463889,
+ 16.466667, 16.469444, 16.472222, 16.475, 16.477778, 16.480556,
+ 16.483333, 16.486111, 16.488889, 16.491667, 16.494444, 16.497222,
+ 16.5, 16.502778, 16.505556, 16.508333, 16.511111, 16.513889,
+ 16.516667, 16.519444, 16.522222, 16.525, 16.527778, 16.530556,
+ 16.533333, 16.536111, 16.538889, 16.541667, 16.544444, 16.547222,
+ 16.55, 16.552778, 16.555556, 16.558333, 16.561111, 16.563889,
+ 16.566667, 16.569444, 16.572222, 16.575, 16.577778, 16.580556,
+ 16.583333, 16.586111, 16.588889, 16.591667, 16.594444, 16.597222,
+ 16.6, 16.602778, 16.605556, 16.608333, 16.611111, 16.613889,
+ 16.616667, 16.619444, 16.622222, 16.625, 16.627778, 16.630556,
+ 16.633333, 16.636111, 16.638889, 16.641667, 16.644444, 16.647222,
+ 16.65, 16.652778, 16.655556, 16.658333, 16.661111, 16.663889,
+ 16.666667],
+ 'CO2': [502.16, 502.52, 502.37, 502.28, 502.03, 501.85, 500.96, 501.45,
+ 503.13, 503.35, 504.25, 503.82, 504.67, 505.58, 505.24, 506.36,
+ 506.26, 506.74, 507.15, 508.35, 510.04, 510.33, 511.07, 513.61,
+ 517.43, 545.17, 562.36, 569.13, 571.11, 569.67, 568.98, 566.17,
+ 566.2, 564.76, 565.95, 567.99, 568.42, 571.41, 573.42, 574.68,
+ 576.47, 579.9, 583.54, 656.87, 744.06, 729.43, 725.85, 729.82,
+ 731.37, 727.59, 722.65, 712.28, 696.51, 687.34, 681.55, 681.75,
+ 679.86, 674.47, 671.53, 667.85, 664.86, 662.37, 660.56, 659.4,
+ 658.68, 657.92, 659.13, 661.02, 662.62, 662.76, 662.75, 661.95,
+ 662.21, 661.39, 660.62, 659.59, 658.8, 657.17, 656.5, 655.86,
+ 655.74, 655.31, 655.84, 656.79, 661.79, 716.87, 740.74, 731.64,
+ 718.92, 714.58, 706.11, 702.12, 696.51, 692.75, 687.53, 684.36,
+ 683.33, 682.36, 680.5, 679.32, 679.95, 678.82, 677.78, 677.41,
+ 677.15, 677.14, 678.71, 678.56, 677.82, 678.58, 679.52, 680.11,
+ 680.24, 681.39, 683.47, 683.26, 684.15, 684.72, 685.15, 684.59,
+ 685.13, 685.8, 685.89, 685.44, 685.7, 685.93, 685.2, 684.93,
+ 684.73, 685.35, 685.25, 684.98, 684.95, 685.02, 685.48, 685.93,
+ 686.66, 687.88, 688.87, 689.6, 690.85, 691.43, 692.65, 693.35,
+ 693.76, 694.2, 695.15, 695.46, 696.14, 697.21, 697.46, 697.08,
+ 698.53, 700.15, 700.8, 701.07, 701.3, 701.33, 701.4, 701.59,
+ 701.37, 701.93, 702.29, 702.64, 703.47, 703.89, 705.17, 706.22,
+ 707.79, 709.08, 710.37, 711.11, 711.74, 712.45, 712.66, 713.18,
+ 714.71, 717.05, 718.33, 719.26, 720.8, 722.3, 723.97, 725.78,
+ 726.19, 726.35, 726.39, 727.52, 727.89, 728.83, 729.26, 729.91,
+ 730.95, 731.28, 730.98, 730.54, 731.01, 732.19, 732.56, 733.14,
+ 733.35, 733.18, 734.33, 734.28, 735.04, 735.51, 735.42, 735.89,
+ 736.63, 738.09, 738.24, 739.66, 740.11, 740.75, 741.6, 742.57,
+ 742.84, 744.36, 744.26, 745.78, 745.42, 746.33, 746.97, 747.5,
+ 747.66, 747.35, 747.93, 747.73, 748.32, 747.74, 748.21, 747.87,
+ 748.13, 749.3, 749.01, 748.78, 747.93, 748.46, 747.91, 746.82,
+ 746.99, 746.4, 746.32, 746.9, 746.28, 744.76, 744.05, 743.47,
+ 742.51, 742.34, 742.74, 742.13, 741.51, 741., 739.87, 740.26,
+ 739.92, 740.32, 740.44, 740.34, 739.22, 738.02, 736.2, 735.12,
+ 733.65, 731.82, 711.3, 684.84, 663.59, 651.41, 642.23, 637.08,
+ 630.88, 625.48, 619.19, 614.33, 610.26, 607.08, 603.63, 601.39,
+ 598.63, 596.03, 594.6, 591.8, 590.14, 587.92, 585.88, 583.15,
+ 581.98, 580.28, 579.29, 578.08, 576.59, 574.09, 573.17, 571.23,
+ 570.89, 569.19, 566.81, 565.57, 564.68, 564.04, 563.49, 562.39,
+ 561.89, 560.36, 558.42, 557.47, 555.99, 554.46, 553.32, 551.85,
+ 550.81, 549.4, 547.85, 546.7, 545.74, 544.54, 543.4, 542.26,
+ 541.8, 540.64, 539.54, 539.48, 539.5, 538.86, 538.61, 537.6,
+ 536.56, 537.13, 537.02, 536., 535.53, 535.18, 535.34, 534.58,
+ 533.82, 533.86, 533.31, 532.3, 532.41, 532.01, 530.99, 530.81,
+ 529.68, 528.67, 527.93, 526.5, 526.09, 525.68, 525.39, 525.14,
+ 524.89, 525.17, 524.97, 524.52, 524.43, 524.44, 524.05, 523.64,
+ 524.45, 523.98, 523.68, 522.06, 521.61, 520.78, 520.5, 520.74,
+ 521.08, 520.12, 518.69, 518.37, 517.36, 518.24, 517.92, 517.83,
+ 517.99, 518.07, 517.74, 518.28, 518.59, 518.36, 519.67, 520.65,
+ 522.45, 523.84, 525.31, 527.49, 529.88, 533.41, 537.24, 539.48,
+ 543.32, 545.58, 547.98, 551.17, 553.87, 556.27, 559.42, 562.04,
+ 567.04, 570.98, 574.45, 576.87, 581.06, 583.12, 585.4, 585.99,
+ 586.86, 587.34, 589.09, 589.83, 592.14, 595.64, 597.63, 599.11,
+ 601.29, 603.16, 606.24, 608.3, 610.78, 611.93, 613.16, 613.69,
+ 614.56, 616.52, 617.61, 619.03, 621.76, 626.33, 635.74, 638.77,
+ 643.2, 646.39, 647.71, 648.05, 648.02, 647.73, 648.26, 648.45,
+ 649.27, 650.2, 650.19, 651.41, 651.45, 651.89, 651.97, 651.22,
+ 650.26, 649.26, 649.32, 648.72, 649.21, 649.12, 649.59, 650.2,
+ 650.3, 650.81, 651.84, 652.56, 653.78, 654.41, 656.38, 656.8,
+ 658.27, 659.55, 662.46, 663.42, 664.79, 666.24, 669.67, 671.2,
+ 673.22, 673.37, 674.06, 674.83, 674.99, 675.31, 675.34, 675.45,
+ 674.49, 673.04, 672.26, 671.86, 672.31, 670.7, 668.99, 665.48,
+ 649.21, 580.18, 560.14, 551.29, 546.45, 540.56, 537.16, 531.77,
+ 529.53, 525.97, 523.4, 521.33, 519.09, 517.2, 516.24, 513.66,
+ 512.45, 511.35, 510.9, 509.33, 509.31, 509.16, 509.52, 510.94,
+ 512.74, 513.67, 513.83, 514.08, 515.39, 515.46, 515.03, 514.46,
+ 513.86, 511.92, 511.11, 510.74, 510.56, 510.86, 510.79, 510.19,
+ 509.45, 509.3, 508.52, 508.4, 507.45, 506.41, 505.21, 504.36,
+ 504.34, 504.31, 504.05, 504.07, 503.47, 502.84, 502.58, 503.12,
+ 502.79, 501.66, 501.34, 500.98, 500.01, 499.44, 499.09, 497.82,
+ 496.99, 495.65, 495.12, 494.99, 495.04, 495.06, 494.72, 493.97,
+ 493.56, 492.46, 491.75, 491.24, 490.67, 490.93, 490.6, 489.95,
+ 491.18, 492.29, 492.04, 492.28, 493.21, 493.15, 493.73, 495.33,
+ 494.63, 494.09, 493.86, 492.74, 492.06, 490.75, 490.68, 490.88,
+ 491.68, 493.12, 494.76, 494.77, 494.09, 494.24, 495.04, 494.05,
+ 493.81, 493.15, 491.08, 490.93, 489.98, 489.28, 489.04, 488.35,
+ 488.26, 487.86, 488.08, 488.52, 489., 489.16, 490.06, 491.04,
+ 493.09, 500.17, 509.92, 517.71, 521.99, 528.32, 532.58, 536.79,
+ 537.85, 539.96, 540.79, 542.91, 546.55, 548.82, 551.29, 554.44,
+ 556.4, 558.68, 560.84, 563.15, 565.21, 565.95, 567.9, 569.4,
+ 569.19, 569.25, 569.14, 568.18, 567.02, 565.83, 566.03, 565.05,
+ 564.56, 564.69, 564.46, 564.33, 564.4, 564.84, 565.92, 566.48,
+ 566.9, 567.41, 567.4, 567.47, 567.88, 567.49, 567.07, 566.99,
+ 567.11, 568.25, 570., 573.99, 582.62, 592.69, 596.27, 599.31,
+ 601.54, 602.85, 603.59, 604.82, 605.31, 606.91, 608.08, 607.74,
+ 607.58, 607.9, 608.4, 607.7, 607.39, 606.27, 606.59, 606.85,
+ 606.77, 606.59, 606.94, 607.74, 609.33, 610.75, 611.12, 612.61,
+ 614.45, 616.3, 617.03, 618.47, 619.7, 620.65, 622.03, 624.54,
+ 625.62, 626.91, 627.22, 628.06, 628.61, 629.63, 630.59, 631.62,
+ 632.86, 633.88, 634.72, 635.1, 636.96, 638.22, 639.52, 640.69,
+ 641.64, 642.16, 643.34, 644.66, 647.1, 647.68, 648.86, 649.89,
+ 650.46, 651.47, 652.83, 652.82, 655.06, 655.69, 656.46, 656.79,
+ 656.97, 656.84, 657.28, 657.64, 657.89, 658.91, 659.77, 659.09,
+ 654.93, 608.79, 569.65, 562.03, 557.42, 555.4, 549.16, 545.72,
+ 541.84, 541.8, 540.75, 539.66, 540.16, 539.51, 537.02, 536.45,
+ 534.64, 533.23, 530.58, 529.8, 529.32, 529.37, 528.83, 528.91,
+ 529.92, 529.61, 529.38, 528.62, 526.61, 525.21, 523.94, 523.44,
+ 523.5, 522.97, 522.71, 522.6, 523.02, 523.15, 522.87, 522.78,
+ 522.09, 521.84, 521.51, 521.02, 520.38, 518.67, 518.4, 517.11,
+ 515.77, 515.68, 515.5, 515.56, 515.47, 515.37, 514.67, 513.6,
+ 513.47, 512.69, 512.5, 513.57, 513.36, 512.61, 511.71, 511.39,
+ 511.07, 510.67, 509.98, 509.67, 509.72, 509.21, 508.56, 508.64,
+ 508.22, 507.95, 507.03, 506.36, 505.87, 505.46, 505.1, 505.03,
+ 505.63, 505.81, 505.98, 505.99, 505.86, 505.62, 505.83, 505.24,
+ 504.68, 504.87, 504.83, 505.02, 505.8, 505.42, 506.61, 506.75,
+ 506.52, 506.03, 505.29, 502.91, 501.75, 500.5, 499.09, 497.16,
+ 496.24, 495.04, 493.46, 493.58, 494.04, 493.49, 493.37, 493.29,
+ 493.92, 494.31, 494.15, 493.73, 493.85, 493.82, 493.55, 494.03,
+ 494.75, 496.2, 498.21, 500.12, 502.68, 507.02, 510.83, 514.33,
+ 517.43, 520.45, 523.44, 528.32, 533.22, 536.42, 539.08, 543.11,
+ 547.35, 549.95, 552.69, 554.68, 558.33, 560.66, 561.31, 562.71,
+ 564.08, 567.56, 570.17, 570.99, 574.12, 575.88, 578.16, 579.16,
+ 579.69, 580.06, 579.77, 579.68, 579.45, 579.91, 579.45, 580.62,
+ 580.26, 581.36, 582.57, 582.87, 583.33, 582.58, 583.32, 584.49,
+ 585.78, 587.25, 588.63, 590.16, 590.56, 591.75, 592.93, 593.73,
+ 594.53, 594.07, 595.37, 595.72, 595.65, 595.28, 593.96, 593.01,
+ 593.15, 593.15, 593.73, 594.2, 594.04, 594.54, 595.04, 595.78,
+ 595.73, 596.17, 596.81, 597.44, 597.36, 597.68, 598.3, 599.37,
+ 600.48, 600.16, 600.69, 602.81, 603.18, 603.95, 604.18, 605.94,
+ 606.21, 607.7, 609.08, 611.26, 611.77, 613.96, 613.94, 613.93,
+ 614.82, 616.09, 616.63, 617.2, 618.03, 618.47, 618.87, 620.15,
+ 621.12, 621.51, 622.98, 623.56, 623.58, 624.13, 625.4, 626.44,
+ 626.85, 628.93, 629.62, 629.66, 630.07, 631.92, 633.07, 634.7,
+ 635.26, 636.46, 637.44, 638.59, 639.19, 639.63, 639.8, 640.91,
+ 641.8, 642.4, 642.57, 643.14, 642.01, 640.91, 638.75, 638.17,
+ 637.96, 638.07, 639.79, 641.22, 641.76, 643.56, 645.03, 646.86,
+ 647.92, 649.69, 650.63, 651.83, 653.18, 654.87, 656.79, 658.05,
+ 659.69, 662.3, 664.28, 665.02, 666.29, 667.58, 669.39, 670.01,
+ 670.93, 671.7, 673.02, 674.72, 676.24, 677.04, 678.46, 678.98,
+ 679.3, 678.52, 678.39, 677.54, 678.71, 678.27, 677.64, 677.69,
+ 677.84, 678.01, 677.74, 677.56, 676.53, 675.81, 675.51, 675.3,
+ 675.01, 674.95, 675.75, 676.48, 677.1, 677.11, 678.27, 678.09,
+ 678.94, 679.1, 679.3, 679.61, 680.47, 681.93, 683.34, 684.57,
+ 686.14, 686.35, 686.38, 687.2, 687.95, 687.66, 687.22, 687.25,
+ 687.81, 688.13, 689.62, 689.48, 690.6, 691.75, 692.97, 694.08,
+ 695.08, 694.51, 694.84, 695.03, 694.85, 694.96, 694.94, 694.6,
+ 694.6]}
diff --git a/caimira/tests/models/test_co2_concentration_model.py b/caimira/tests/models/test_co2_concentration_model.py
index ce57110b..fb7af5af 100644
--- a/caimira/tests/models/test_co2_concentration_model.py
+++ b/caimira/tests/models/test_co2_concentration_model.py
@@ -1,7 +1,10 @@
import numpy.testing as npt
+import numpy as np
+import typing
import pytest
from caimira import models
+from caimira.apps.calculator.co2_model_generator import CO2FormData
@pytest.fixture
@@ -41,3 +44,74 @@ def test_integrated_concentration(simple_co2_conc_model):
c3 = simple_co2_conc_model.integrated_concentration(1, 2)
assert c1 != 0
npt.assert_almost_equal(c1, c2 + c3)
+
+
+@pytest.mark.parametrize(
+ "scenario_data, room_volume, max_total_people, start, finish, state_changes", [
+ ["office_scenario_1_sensor_data", 102, 4, "14:00", "17:30", (14.78, 15.1, 15.53, 15.87, 16.52, 16.83)],
+ ["office_scenario_2_sensor_data", 60, 2, "08:38", "17:30", (10.17, 12.45, 14.5)], # Second state change should actually be 12.87 - that's the real time at which the ventilation was changed in the room.
+ ["meeting_scenario_1_sensor_data", 83, 3, "09:04", "11:45", (10.37, 11.07)],
+ ["meeting_scenario_2_sensor_data", 83, 4, "13:40", "16:40", (14.37, 14.72, 15, 15.33, 15.68, 16.03)]
+ ]
+)
+def test_find_change_points(scenario_data, room_volume, max_total_people, start, finish, state_changes, request):
+ '''
+ Specific test of the find_change_points method.
+ Testing the ventilation state changes only.
+ '''
+ CO2_form_model: CO2FormData = CO2FormData(
+ CO2_data=request.getfixturevalue(scenario_data),
+ fitting_ventilation_states=[],
+ exposed_start=start,
+ exposed_finish=finish,
+ total_people=max_total_people,
+ room_volume=room_volume,
+ )
+ find_points = CO2_form_model.find_change_points()
+ assert np.allclose(find_points, state_changes, rtol=1e-2)
+
+
+@pytest.mark.parametrize(
+ "scenario_data, room_volume, occupancy, presence_interval, all_state_changes", [
+ ["office_scenario_1_sensor_data", 102, (4,), (14, 17.5), (14, 14.25, 14.78, 15.1, 15.53, 15.87, 16.52, 16.83, 17.5)],
+ ["office_scenario_2_sensor_data", 60, (2, 0, 2), (8.62, 11.93, 12.42, 17.5), (8.62, 10.17, 12.45, 14.5, 17.5, 20.)], # Third state change should actually be 12.87 - that's the real time at which the ventilation was changed in the room.
+ ["meeting_scenario_1_sensor_data", 83, (2, 3, 2, 3), (9.07, 9.32, 9.75, 10.75, 11.75), (9.07, 10.37, 11.07, 11.75)],
+ ["meeting_scenario_2_sensor_data", 83, (2, 3, 4), (13.67, 13.75, 15.87, 16.67), (13.67, 14.37, 14.72, 15.00, 15.33, 15.68, 16.03, 16.67)]
+ ]
+)
+def test_predictive_model_accuracy(data_registry, scenario_data, room_volume, occupancy, presence_interval, all_state_changes, request):
+ '''
+ Specific test corresponding to the data files of four
+ different scenarios (2 in an office and 2 in a meeting room).
+ The room volume, number of people and ventilation transition times
+ correspond to the actual state change occurrences during the day.
+
+ Note that the last time from the input file is considered as a ventilation
+ state change.
+ '''
+ input_fitting_data = request.getfixturevalue(scenario_data)
+
+ fitting_model: models.CO2DataModel = models.CO2DataModel(
+ data_registry=data_registry,
+ room=models.Room(volume=room_volume),
+ occupancy=models.IntPiecewiseConstant(
+ transition_times=presence_interval,
+ values=occupancy
+ ),
+ ventilation_transition_times=all_state_changes,
+ times=input_fitting_data['times'],
+ CO2_concentrations=input_fitting_data['CO2'],
+ )
+ # Get fitting results
+ fitting_results: typing.Dict = fitting_model.CO2_fit_params()
+ predictive_CO2: typing.List[float] = fitting_results['predictive_CO2']
+
+ def root_mean_square_error_percentage(actual, predicted) -> float:
+ return np.sqrt(np.mean(((actual - predicted) / actual) ** 2)) * 100
+
+ # Calculate RMSEP metric
+ rmsep = root_mean_square_error_percentage(np.array(input_fitting_data['CO2']), np.array(predictive_CO2))
+
+ acceptable_rmsep = 10 # Threshold of 10% for the accepted error margin
+ assert rmsep <= acceptable_rmsep, f"RMSEP {rmsep} exceeds acceptable threshold {acceptable_rmsep}"
+
\ No newline at end of file