Commit graph

95 commits

Author SHA1 Message Date
lrdossan
7924af041f adapted comments and docstrings of some methods 2024-07-05 12:09:27 +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
f59d56ed16 adjusted the normalization factor for short-range 2024-07-05 12:09:27 +02:00
lrdossan
0d2eaa99f8 added f_inf to the normalization factor of short-range 2024-07-05 12:09:27 +02:00
lrdossan
c78d8bf7e7 refined methods for short_range emission rate 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
Luis Aleixo
ee98b1d308 added breathing cycle to short range dilution factor 2024-05-27 10:42:46 +02:00
Luis Aleixo
c02737cf92 updated schema to reflect v2.0.0 2024-05-27 10:42:46 +02:00
Luis Aleixo
8ea055a8e1 changed docstring for expected_new_cases method 2024-05-24 16:42:03 +02:00
Luis Aleixo
0c41b8e98a changed the default value of short_range_occupants to be 0 2024-05-24 16:42:03 +02:00
Luis Aleixo
04b8e91639 updated new cases method 2024-05-24 16:42:03 +02:00
Luis Aleixo
a54da08789 renamed and moved total_people for short-range interactions to the exposure model 2024-05-24 16:42:03 +02:00
Luis Aleixo
507e586757 re-factor expected new cases method 2024-05-24 16:42:03 +02:00
Luis Aleixo
e97a4cc805 added new model input 2024-05-24 16:41:33 +02:00
Luis Aleixo
00b5dc535d fixed bug with expected new cases when short range interactions are defined 2024-04-20 13:54:46 +01:00
Luis Aleixo
d79ef934cb finished injection of data_service param 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
Nicolas Mounet
b39131c14c Putting f_inf in emission rate, in models.py, and removing it from dose computation 2023-12-01 07:30:29 +01:00
Luis
0fb4cd895e replaced Population class by simplePopulation on CO2DataModel method 2023-11-21 09:43:29 +01:00
Luis Aleixo
5f4a9c3702 added predictive CO2 line and time labels 2023-11-21 09:43:28 +01:00
Luis Aleixo
1c8775c807 back-end optimizations using heritage 2023-11-21 09:43:28 +01:00
Luis Aleixo
7da8cc438e back-end updates for co2 logic 2023-11-21 09:42:16 +01:00
Luis Aleixo
ddfe158467 added report data 2023-11-21 09:42:15 +01:00
Luis Aleixo
b79cb8779d fixed mypy errors 2023-11-21 09:40:27 +01:00
Luis Aleixo
76ed60aaac updated models.py 2023-11-21 09:40:27 +01:00
Luis Aleixo
e75846a3b2 generate initial CO2 plot 2023-11-21 09:40:27 +01:00
Luis Aleixo
61fc627e35 added CO2 data class 2023-11-21 09:40:26 +01:00
Luis Aleixo
34449788cc added # type: ignore annotations and modified default precise activity 2023-11-17 09:16:33 +01:00
Luis Aleixo
3f75fc77cd injected parameters in models, model and report generator 2023-10-26 16:29:20 +02:00
Nicolas Mounet
e0a321dd86 fixing mypy issue 2023-10-04 16:00:11 +02:00
Nicolas Mounet
9712ffc8ae Adapting zero removal rate case to case when RR is an array 2023-10-04 16:00:11 +02:00
Luis Aleixo
c8f2b32fef modified CO2 concentration when ventilation is close to 0. (RR) 2023-10-04 16:00:11 +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
2ec9a7f262 removed unused block of code 2023-06-29 10:01:59 +01:00
Luis Aleixo
422d2245c5 dose list implementation 2023-06-08 16:46:05 +02:00
Luis Aleixo
c42c2b0b8b turned infection probability method private 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
e8cf3d160a adapted dynamic total probability rule 2023-06-08 16:46:05 +02:00
Luis Aleixo
ec54c40785 added probability of infection based on dynamic occupants 2023-06-08 16:46:05 +02:00
Luis Aleixo
2a3c598488 updated dynamic total_prob_rule method 2023-06-08 16:46:05 +02:00
Luis Aleixo
77c0c5f3a6 dynamic exposed for incidence rate 2023-06-08 16:46:05 +02:00
Luis Aleixo
96b6a84b76 improved report generator methods 2023-06-01 16:31:04 +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
801955317f added verifications for unexpected jumps 2023-04-28 08:54:58 +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
ee29f12f35 updated typos and got back the state tests 2023-03-23 11:37:48 +01:00
Luis Aleixo
830c0d0edb modified test values to consider min ventilation 2023-03-23 11:35:40 +01:00