Commit graph

72 commits

Author SHA1 Message Date
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
Luis Aleixo
8782069a9c added services and fixed ventilation 2023-03-23 11:35:40 +01:00
Luis Aleixo
4a965edde6 fixed mypy errors 2023-03-23 11:35:39 +01:00
Luis Aleixo
11be1abf8e initial tests for CO2_expert 2023-03-23 11:35:39 +01:00
Luis Aleixo
eed3629dd5 handled the case when the removal rate is 0 and changed documentation 2023-01-27 16:47:39 +01:00
Luis Aleixo
e59d4b3d59 updated background_concentration name to min_background_concentration 2023-01-11 13:54:05 +01:00
Luis Aleixo
2043f34b69 updated atmospheric concentration to background concentration (more generic) 2023-01-10 13:06:02 +01:00
Luis Aleixo
1e0d0a8de2 updated documentation and added tests for the integrated concentration 2023-01-10 09:51:44 +01:00
Nicolas Mounet
2a481c1500 Correcting bug in models._ConcentrationModelBase (wrong value of concentration_limit when no one is present, for non-zero atmospheric concentration) 2023-01-10 09:51:44 +01:00
Luis Aleixo
dc12ee3359 Initial atmosphere_concentration normalized 2023-01-10 09:51:44 +01:00
Nicolas Mounet
266a3727e8 Changing structure of CO2 concentration model. Renaming one input of ConcentrationModel (infected->population) since it is now inherited from _ConcentrationModelBase, which requires subsequent changes in the apps. 2023-01-10 09:51:44 +01:00
Luis Aleixo
17644f3259 added percentage of BR for CO2 as input parameter 2023-01-10 09:51:44 +01:00
Luis Aleixo
a7a9ca43da Removed co2 activities and adapted formula 2023-01-10 09:51:43 +01:00
Luis Aleixo
2e5559d017 added CO2 initial room concentration on the formula 2023-01-10 09:51:43 +01:00
Luis Aleixo
fe9a593122 adapted co2 formula to have an initial state 2023-01-10 09:51:43 +01:00
Luis Aleixo
35e64674a4 added initial state change 2023-01-10 09:51:43 +01:00
Luis Aleixo
980a97c0cb correction of initial value 2023-01-10 09:51:43 +01:00
Luis Aleixo
9a9dd91835 added co2 concentration time 2023-01-10 09:51:43 +01:00
Luis Aleixo
b04ebcfaf6 fixed numpy update error 2023-01-10 09:45:08 +01:00
Luis Aleixo
37d699d483 updated GitLab repository URL 2022-12-15 14:30:11 +00:00
Luis Aleixo
e35edeab44 updated exh_coef variable name 2022-11-09 11:13:27 +01:00
Luis Aleixo
599603126f Updated methods docstrings 2022-11-08 17:40:25 +01:00
Luis Aleixo
230f1cedff Adapted dilution factor formula with exhalation coefficient 2022-11-08 17:40:25 +01:00
Andre Henriques
b958ff634d Merge branch 'feature/post_init_diameter_validation' into 'master'
Check for the diameter type

See merge request cara/caimira!382
2022-11-04 17:56:47 +01:00