Commit graph

113 commits

Author SHA1 Message Date
lrdossan
20b0467f89 Backend separation
- extract, isolate and package it in a completely independent Python module, versioned and in a way that allows releases on PyPI.org
- fixed error in placeholder for secondary school (data registry defaults)
- added restriction in pytest version to install
- expected number of new cases fix
- data registry update (schema v2.1.1)
- github update
- deprecate ExpertApplication and CO2Application
- changes to reflect schema update 2.0.2
- version update
- Fixed error with f_inf (short-range)
- new folder layout
- Conditional probability data update
- General fixes
- Fitting results in L/S/person
- CO2 fitting algorithm refinement
2024-09-02 17:39:46 +02:00
lrdossan
e0675ba634 adated docscrings and comments troughout the code following review 2024-09-02 11:23:52 +02:00
lrdossan
24062ffab9 fixed merge conflicts 2024-08-30 12:27:47 +02:00
lrdossan
7918779157 added tests for all the different scenarios 2024-08-30 10:48:50 +02:00
lrdossan
a217a83fcc wrote find state change tests for all data scenarios 2024-08-30 10:48:50 +02:00
lrdossan
f83a886928 added tests with RMSEP 2024-08-30 10:44:45 +02:00
Andre Henriques
dbdc6b5760 Merge branch 'feature/ACH_to_L_s_person' into 'master'
Fitting results: added flow rate data (l/s/p)

Closes #416

See merge request caimira/caimira!504
2024-08-30 09:22:32 +02:00
lrdossan
309b00a7cd added room_capacity as prop of room 2024-08-26 15:50:46 +02:00
lrdossan
bea7edb048 adapted test 2024-08-20 15:53:32 +01:00
lrdossan
eb0f5cc881 modified methods to get conditional probability data 2024-07-18 17:01:48 +02:00
lrdossan
ada64d6acc added test for lsp ventilation 2024-07-18 12:32:04 +02:00
lrdossan
b3f7321a28 added table for l/s/p results 2024-07-18 12:20:31 +02:00
lrdossan
bbb82d2927 removed unused import and fixed docstring 2024-07-15 09:03:42 +02:00
lrdossan
42570887b5 added test for scale with f_inf 2024-07-12 17:34:50 +02:00
lrdossan
ddaa77b1c9 added the fraction of infectious virus method in the test full algorithm file 2024-07-05 12:09:28 +02:00
lrdossan
fa38282186 removed aerosols_without_mask in order to always use aerosols method with the correction conversion factor 2024-07-05 12:09:27 +02:00
lrdossan
7cb762ec1f fixed error with f_inf (short-range) 2024-07-05 12:09:26 +02:00
lrdossan
c5cbd23cdd use "deactivated" concept instead of "deprecated" 2024-06-28 13:44:38 +01:00
lrdossan
f3fde95792 expert application (virus and CO2) are not anymore be maintained 2024-06-18 17:09:34 +02:00
Luis Aleixo
3c3758dfcd removal of viable_to_RNA_ratio_distribution and infectious_dose_distribution from data registry 2024-05-27 10:42:46 +02:00
Luis Aleixo
a0d8f45424 renamed new input "short_range_total_people" to "short_range_occupants" 2024-05-24 16:42:03 +02:00
Luis Aleixo
e61700aaad added test for expected new cases 2024-05-24 16:42:03 +02:00
Luis Aleixo
10146f9a18 added baseline model with sr 2024-05-24 16:42:03 +02:00
Luis Aleixo
c5963a978a Added timeout to fetch method 2024-03-06 14:26:35 +01:00
Nicola Tarocco
ddfe0b660e
tests: make report generation time limit configurable 2024-02-27 21:17:46 +01:00
Luis Aleixo
7199143257 removed authentication methods and tests for data service 2024-01-31 11:50:12 +01:00
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