Commit graph

2509 commits

Author SHA1 Message Date
5e2f013a8e
Changed link to template.xlsx
Point to a local template
2025-08-15 15:39:01 +02:00
1e81c39bb2
Added CO2 template to structure 2025-08-15 15:33:49 +02:00
4496c4d271
Create CO2_template.xlsx 2025-08-15 15:33:15 +02:00
Andre Henriques
219207320a Merge branch 'feature/dynamic_groups' into 'master'
Dynamic groups in backend

See merge request caimira/caimira!510
2025-07-24 19:31:09 +00:00
Nicolas Mounet
f15fa1c0fd CHANGELOG and version number updated 2025-07-24 16:16:01 +02:00
Nicolas Mounet
e0088c49ec Fixing report text in the static case (removing reference to a group id) 2025-07-24 11:41:46 +02:00
Nicolas Mounet
71fa7df8a2 Updating some mypy and pyinstrument dependencies 2025-07-24 10:42:12 +02:00
Nicolas Mounet
c8904b983e Fixing typing issues 2025-07-24 10:40:12 +02:00
Nicolas Mounet
6b878f7347 Fix in error message, in form_validator.py 2025-07-24 06:04:11 +00:00
Nicolas Mounet
29ce7c817b Cosmetics in form_validator.py (error messages with input keys in double quotes) 2025-07-23 14:47:29 +00:00
Nicolas Mounet
d83dfa01df Cosmetics in test_model_generator.py (error messages with input keys in double quotes) 2025-07-23 14:47:07 +00:00
Nicolas Mounet
31e31f22cd Fixing typing bug introduced in form_validator.py 2025-07-23 09:36:22 +00:00
Nicolas Mounet
5281ba5b58 Cosmetic change in virus_report_data.py 2025-07-23 09:10:50 +00:00
Nicolas Mounet
9104bf7c05 Fixing tests in test_model_generator.py following previous commits (error messages slightly changed) 2025-07-23 08:36:04 +00:00
Nicolas Mounet
2ab4649113 Cosmetics in form_validator.py 2025-07-23 07:58:28 +00:00
Nicolas Mounet
d05b2b09a8 Some typing added in form_validator.py 2025-07-23 07:32:50 +00:00
Nicolas Mounet
690e6e5d7b Small edits in form_validator.py 2025-07-23 06:29:52 +00:00
lrdossan
2658e36add updated expiration definition 2025-05-09 11:59:18 +02:00
lrdossan
a61d065b83 added population models generation (infected and exposed) 2025-03-25 15:16:45 +01:00
lrdossan
a56ad5f77a updates following reviewing process:
- replaced 'dynamic_exposed_occupancy', 'dynamic_infected_occupancy' and 'dynamic_occupancy' by 'occupancy' that encompasses both
- developed respective functionality, including CAiMIRA UI and REST API
- simplified logic with entry overlaps and respective validation
- simplified CO2 logic with dynamic groups
- simplified logic with alternative scenarios
- changed default identifier of unique group
- handled naming conventions
- updated existing tests and added new tests for the most recent structure
- generate docscrings update
2025-03-21 17:35:49 +01:00
lrdossan
53c1f22375 pep8 format in virus_report_controller 2025-03-19 15:45:06 +01:00
lrdossan
4094eeff1b Added validation __post_init__ check in ExposureModelGroup class and respective tests 2025-03-19 15:45:06 +01:00
lrdossan
61c6b2c2c3 Enhancements for Dynamic and Static Occupancy Handling
- Added default 'static' keyword to single group with static occupancy
- Added default values for 'dynamic_exposed_occupancy' and 'dynamic_infected_occupancy'
- Adapted default model to use ExposureModelGroup instance when static occupancy is defined
- Updated JS methods to generate multiple plots when dynamic occupancy is defined
- Handled the alternative scenario generation when dynamic occupancy is defined
- Improved results generation for exposure groups
- Updated HTML report for visualising results across multiple groups
- Enhanced model representations
2025-03-19 15:45:05 +01:00
lrdossan
d46b5846a1 fix to model_start_end and reproduction number methods 2025-03-19 15:45:05 +01:00
lrdossan
cd3df90c4c Added dynamic groups in backend and propagated required changes to requests
- Correction of typos

- Changes do model to accommodate group of exposure models

- Handled virus validator to accommodate group of exposure models

- Modifications to accomodate generation of results for exposure model group

- Added data registry attribute to exposuremodelgroups class

- Fixed test for dynamic models

- Defined ExposureModelGroup with required methods

- Adapted virus report data to generate results for groups of exposed population

- Build same distributions for different models

- Fixed bug with defaults

- Handled definition of a single ExposureModel root obj when only one group is defined

- Added short-range expirations per group

- Added full validation on short_range interactions with dynamic exposure model

- Added full set of tests

- Updated docstrings

- Added support for number of people in exposed population, which should be identical within each group

- Added type checks

- Added UI adjustments for expected new cases

- Adapted exposed population data format to accommodate constant total_people
2025-03-19 15:45:05 +01:00
Nicola Tarocco
c50f9b4ad7 Merge branch 'next-release' into 'master'
release: v4.17.8

See merge request caimira/caimira!533
2025-03-13 13:51:30 +00:00
Nicola
d78865ab88
release: v4.17.8 2025-03-13 14:47:49 +01:00
Nicola Tarocco
f17e33de82 Merge branch 'implement-preflight' into 'master'
api: implement preflight request

Closes #442

See merge request caimira/caimira!531
2025-03-13 13:46:56 +00:00
Nicola
97dd9aab58
api: implement preflight request
* closes #442
2025-03-13 14:42:15 +01:00
Nicola Tarocco
b535d94910 Merge branch 'feature/CO2_times_endpoints' into 'master'
CO2 endpoints response content

See merge request caimira/caimira!532
2025-03-13 13:38:04 +00:00
lrdossan
893421ad23 updated documentation 2025-03-12 15:54:57 +01:00
lrdossan
50e654bdbf Updated API methods that return ventilation transition times 2025-03-12 15:54:47 +01:00
Luis Aleixo
62f782c92e Merge branch 'bugfix/README' into 'master'
Bugfix in README ref to Licence

See merge request caimira/caimira!526
2025-02-10 10:51:04 +00:00
lrdossan
356dfca1df updated version 2025-02-10 11:44:49 +01:00
lrdossan
9aa661bcdc Bugfix in README href 2025-02-10 11:42:24 +01:00
Luis Aleixo
e4ac942af9 Merge branch 'feature/co2_endpoints' into 'master'
Update on CO2 routes

See merge request caimira/caimira!530
2025-02-07 14:19:54 +00:00
lrdossan
1299a5a638 Updated REST API documentation 2025-02-06 17:23:52 +01:00
lrdossan
0237bc0c77 added routing to the suggested ventilation transition times 2025-02-06 17:13:50 +01:00
Luis Aleixo
c57fd94431 Merge branch 'feature/pypi-version-release' into 'master'
PyPI version update and MANIFEST

See merge request caimira/caimira!525
2024-12-04 16:38:36 +01:00
lrdossan
04fb99848a increased version 2024-12-04 16:21:33 +01:00
lrdossan
61c034c1d6 added manifest 2024-12-04 16:21:18 +01:00
Luis Aleixo
778444adf6 Merge branch 'pypi-releases' into 'master'
releases: add PyPI config

Closes #430

See merge request caimira/caimira!518
2024-12-03 14:13:54 +01:00
lrdossan
90fd2a503d moved section of test instance of pypi to development section in code > rest api page 2024-12-03 10:45:57 +01:00
Andre Henriques
f4b3b1b571 final update to installation md 2024-12-02 17:19:05 +01:00
lrdossan
1c3f0f5278 cleaned sphinx conf file 2024-12-02 11:35:01 +01:00
lrdossan
1eee08dbc9 updated installation structure 2024-12-02 11:34:45 +01:00
lrdossan
640c4c5e28 changed project main URL 2024-12-02 11:33:53 +01:00
lrdossan
a2c76d8551 updated copyright 2024-12-02 11:33:43 +01:00
Andre Henriques
987ad74531 suggestions for installation.md 2024-11-30 21:30:30 +01:00
Nicola Tarocco
6b3efb9345 releases: add PyPI config
- closes #430
2024-11-29 17:14:46 +01:00