Commit graph

87 commits

Author SHA1 Message Date
Luis Aleixo
d79ef934cb finished injection of data_service param 2023-12-14 15:34:08 +01:00
Luis Aleixo
20e8bf1df7 added data_service attr where needed 2023-12-14 15:34:08 +01:00
Nicola Tarocco
bb51eaa360 config: inject data registry instance instead of static config
* closes #365
2023-12-14 15:34:08 +01:00
Luis Aleixo
23c8959244 fixed bug related to specific breaks 2023-12-14 14:49:06 +01:00
Nicolas Mounet
d53d62f3f3 Renaming finf in test_full_algorithm 2023-12-12 16:23:07 +01:00
Nicolas Mounet
1f90d08163 Multiplying all emission rate values by 0.305 (average of uniform distribution of f_inf - 0.01 to 0.6) in test_monte_carlo_full_models, to adapt it to f_inf now included in emission rate 2023-12-01 07:35:07 +01:00
Nicolas Mounet
605a2d3fb7 Adapting test_full_algorithm to new concentration with f_inf included (f_inf and HI displaced in SimpleConcentrationModel) 2023-12-01 07:33:26 +01:00
Nicolas Mounet
5b4345e40a Multiplying all known concentrations in test_exposure_model by f_inf=0.5, as concentration is now with f_inf included 2023-12-01 07:32:03 +01:00
Luis Aleixo
d70029d0ed Merge branch 'feature/CO2_fit' into 'master'
Fit ventilation and exhalation rates on CO2 sensor data

See merge request caimira/caimira!444
2023-11-22 15:43:00 +01:00
Luis Aleixo
f6abdc91c6 merged tests (custom and fixed) 2023-11-22 14:45:57 +01:00
Luis Aleixo
eca8e035c4 added test for natural and mechanical ventilation fitting algorithm 2023-11-22 10:15:04 +01:00
Nicola Tarocco
6cad72356d
data service: add JWT expiration validation 2023-11-21 14:34:05 +01:00
Luis Aleixo
3da67c8c95 add superclass FormData for CO2FormData and VirusFormData 2023-11-21 09:45:42 +01:00
Luis
ac2e8b799d Added validation for the case the header is not a string 2023-11-21 09:45:41 +01:00
Luis Aleixo
ddfe158467 added report data 2023-11-21 09:42:15 +01:00
Luis Aleixo
e75846a3b2 generate initial CO2 plot 2023-11-21 09:40:27 +01:00
Nicola Tarocco
035190564c
refactor data service 2023-11-16 16:11:49 +01:00
Luis Aleixo
ef212f9455 moved data service to separate module and removed logic from caimira calculator module 2023-10-26 16:27:27 +02:00
Luis Aleixo
c8f2b32fef modified CO2 concentration when ventilation is close to 0. (RR) 2023-10-04 16:00:11 +02:00
Nicolas Mounet
878e4b26cd Increasing number of samples in test_conditional_probability.py 2023-09-02 11:21:17 +02:00
Nicolas Mounet
82f4e14905 relaxing tolerances on conditional prob. test 2023-09-01 16:18:10 +02:00
Nicolas Mounet
f8530d4724 Centering the interval for vl uncertainty computation in report generator -> improving test accuracy 2023-09-01 15:21:04 +02:00
Luis Aleixo
c4d527f1a5 solved seed problem with conditional prob test 2023-08-02 14:49:03 +02:00
Luis Aleixo
b6e1afc2a6 Increased test sample size 2023-07-31 17:05:48 +02:00
Luis Aleixo
88c23da962 increased sample size 2023-07-28 17:39:17 +02:00
Luis Aleixo
7d338d3e2d separated vl method and added a test file 2023-07-28 17:39:17 +02:00
Nicolas Mounet
d26218c7e5 Inputing arguments as keywords in populations definition, in test_exposure_model 2023-07-28 10:34:21 +02:00
Luis Aleixo
8e877ec357 created a simple population class for the CO2 concentration model 2023-07-25 13:18:33 +02:00
Luis Aleixo
e732fb48d7 data service: add toggle env var to make it optional 2023-07-19 11:39:39 +02:00
Luis Aleixo
f9fb2a12fb added a test file 2023-07-17 17:28:09 +02:00
Luis Aleixo
07d692b964 expanded pytest raises on tests to each single case 2023-06-29 10:02:26 +01:00
Luis Aleixo
422d2245c5 dose list implementation 2023-06-08 16:46:05 +02:00
Luis Aleixo
a16957d319 updated deposited_exposure method and infection probability tests 2023-06-08 16:46:05 +02:00
Luis Aleixo
df77bdd1b5 tests for incidence rate 2023-06-08 16:46:05 +02:00
Luis Aleixo
1171e51f90 removed private reference for DEFAULT_DATA variables 2023-05-25 16:43:45 +02:00
Luis Aleixo
7fd0e0f8ec updated env var EXTRA_PAGES structure 2023-05-09 17:13:46 +02:00
Luis Aleixo
fb18a2a715 added tests for generic pages 2023-05-08 11:18:11 +02:00
Luis Aleixo
2d3a925fc5 adapted init methods to consider readme and about pages as generic 2023-05-08 10:55:02 +02:00
Luis Aleixo
022abad186 updated branch according to review: - new presence_interval() method in the population class that avoids repetition of if conditions through the code. - typo fix. -tests were updated accordingly 2023-04-28 12:05:30 +02:00
Luis Aleixo
bcb1d1012a modified dynamic tests for InfectedPopulation 2023-04-28 08:54:59 +02:00
Nicolas Mounet
fe19cb5976 Change all normalization factors and emission rates (when present) into 'per person' quantities (i.e. do not normalize anymore by the number of infected people) - to allow dynamic number of infected people. Changing the test accordingly, and the documentation. Adding a __post_init__ check in ExposureModel to forbid the use of dynamic number of exposed people, for now. 2023-04-28 08:54:59 +02:00
Luis Aleixo
e494151d78 added test for dynamic and static population 2023-04-28 08:54:59 +02:00
Luis Aleixo
70f7e86524 test for dynamic occupants 2023-04-28 08:54:58 +02:00
Luis Aleixo
fe7cbf45b7 added expert apps validation for presence times 2023-04-28 08:54:58 +02:00
Luis Aleixo
8a72d27fb1 updated expert app notebook and tests 2023-03-23 12:02:19 +01:00
Luis Aleixo
ee29f12f35 updated typos and got back the state tests 2023-03-23 11:37:48 +01:00
Luis Aleixo
9c810e17e8 updated ventilation scheme 2023-03-23 11:37:47 +01:00
Luis Aleixo
830c0d0edb modified test values to consider min ventilation 2023-03-23 11:35:40 +01:00
Luis Aleixo
8782069a9c added services and fixed ventilation 2023-03-23 11:35:40 +01:00
Luis Aleixo
24e530cb11 adapted test test_webapp.py 2023-03-17 12:09:15 +01:00