Commit graph

63 commits

Author SHA1 Message Date
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
Luis Aleixo
a898e72bd5 Q0φ with instead of BR directly 2022-11-02 15:40:40 +01:00
Luis Aleixo
44f016bb16 updated message errors and added room volume vectorisation test when as a ventilation parameter 2022-11-02 14:57:43 +01:00
Luis Aleixo
a32c4f1ae3 update to documentation on dilution factor 2022-10-28 12:17:12 +02:00
Luis Aleixo
ecf99b34cc Updated tests and model post_init method 2022-10-20 14:19:49 +02:00
Luis Aleixo
24ef358571 adapted post_init method for diameter-independent elements of the IVRR 2022-10-19 17:55:18 +02:00
Luis Aleixo
3314d0146c Updated the ExposureModule conditions on post_init 2022-10-18 15:35:35 +02:00
Luis Aleixo
f7bce0ef24 added verification for diameter independent parameters 2022-10-18 15:35:35 +02:00
Luis Aleixo
beea8a800b updated inhalation and exhalation values 2022-10-11 10:39:21 +02:00
Luis Aleixo
3ea0d83e21 Added cloth mask to backend 2022-10-10 14:13:31 +02:00