Commit graph

54 commits

Author SHA1 Message Date
Nicola Tarocco
00ff1af71d fix enums for data service 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
3da67c8c95 add superclass FormData for CO2FormData and VirusFormData 2023-11-21 09:45:42 +01:00
Luis Aleixo
3dc0364d2e optimised validation method 2023-11-21 09:43:29 +01:00
Luis Aleixo
7da8cc438e back-end updates for co2 logic 2023-11-21 09:42:16 +01:00
Luis Aleixo
a80c804832 added visualisation for ach table in form and report 2023-11-21 09:42:15 +01:00
Luis Aleixo
827327b70e removed unused references from report generator 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
3f75fc77cd injected parameters in models, model and report generator 2023-10-26 16:29:20 +02:00
Luis Aleixo
4f1a497954 modified env var fetch method 2023-09-13 09:49:06 +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
27da077493 added full vl value on key of viral load 2023-08-04 11:17:10 +02:00
Luis Aleixo
77143c13c0 added vl_data on percentiles 2023-08-03 16:16:26 +02:00
Luis Aleixo
1abfe3cfe5 added a method to manufacture conditional probability and send it in the report 2023-08-03 15:01:31 +02:00
Luis Aleixo
96e9aead44 removed manufacture viral load scenarios method and related references 2023-08-03 15:01:06 +02:00
Luis Aleixo
6622315dd9 changed mypy type 2023-07-31 17:33:44 +02:00
Luis Aleixo
7d338d3e2d separated vl method and added a test file 2023-07-28 17:39:17 +02:00
Luis Aleixo
fe60e1703f added mypy typing check 2023-07-28 17:39:17 +02:00
Luis Aleixo
b6051778eb modified method to calculate conditional probability 2023-07-28 17:39:16 +02:00
Luis Aleixo
43630cda2c added logarithm of viral load distribution to jinja variable 2023-07-14 11:23:42 +02:00
Luis Aleixo
2d1e8af30f added viral load distribution as a variable to display in the front-end side 2023-07-12 17:11:03 +02:00
Luis Aleixo
800578f031 adjustments to d3 plot 2023-06-12 15:19:06 +02:00
Luis Aleixo
bc7dae3610 changed CO2 label and added hlines with legends 2023-06-12 15:19:06 +02:00
Luis Aleixo
b17a1b991a modified draw alternative scenarios method to be a generic plot and added export CO2 cvs data 2023-06-12 15:19:06 +02:00
Luis Aleixo
e67960e035 added methods to generate CO2 model 2023-06-12 15:19:06 +02:00
Luis Aleixo
d04869ce16 added generation of conditional probability of infection values based on form condition 2023-06-02 14:42:38 +02:00
Luis Aleixo
7542683da2 added two more viral load scenarios 2023-06-01 17:20:39 +02:00
Luis Aleixo
96b6a84b76 improved report generator methods 2023-06-01 16:31:04 +02:00
Luis Aleixo
207606e97e added more vl values for calculation 2023-05-31 16:52:30 +02:00
Luis Aleixo
ca786d7e7f added results with different viral load values 2023-05-31 16:36:56 +02:00
Luis Aleixo
0cb6477cb2 modified file name and references. removed unused variables 2023-05-26 09:44:47 +02:00
Luis Aleixo
1171e51f90 removed private reference for DEFAULT_DATA variables 2023-05-25 16:43:45 +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
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
fe7cbf45b7 added expert apps validation for presence times 2023-04-28 08:54:58 +02:00
Luis Aleixo
a3d66b8463 updated number of points per hour to be 15 instead of 25 2023-04-26 15:16:33 +02:00
Luis Aleixo
e4636e5fe6 interesting times to be proportional to the simulation time 2023-04-26 15:16:33 +02:00
Luis Aleixo
308c469f81 updated plot labels and legend 2023-03-31 09:55:39 +02:00
Luis Aleixo
de07bdcd79 adapted method for uncertainties plot 2023-03-31 09:55:38 +02:00
Luis Aleixo
f199e974d5 added checkbox for conditional probability generation 2023-03-31 09:55:38 +02:00
Luis Aleixo
8b25fb631c removed tqdm package 2023-03-31 09:55:38 +02:00
Luis Aleixo
d7039a958a added method to generate P(I|vl) uncertainties graphs 2023-03-31 09:55:38 +02:00
Luis Aleixo
188ed7a531 added mean line on histogram plot 2023-03-31 09:55:38 +02:00
Luis Aleixo
f54aab1d46 d3 implementation for poi bins 2023-03-31 09:55:38 +02:00
Luis Aleixo
1146cf76c9 modified templates to consider a relative path 2023-03-17 12:08:58 +01:00
Luis Aleixo
87318a72c8 check for nan values on probabilistic exposure 2022-12-15 16:12:30 +00:00
Luis Aleixo
4ab95fcfaa added default values for vaccine types on tests 2022-11-10 16:09:32 +01:00
Luis Aleixo
12b7b57593 moved default infectiousness_days value to SARSCoV2 class and added another test scenario 2022-10-10 11:15:05 +02:00
Luis Aleixo
9032a8815d changed variable name in report_generator and added a retry decorator in test 2022-10-04 17:31:17 +02:00