Commit graph

278 commits

Author SHA1 Message Date
Phil Elson
a9221c558b Implement an emission_rate_when_present method on InfectedPopulation, so that we don't have to keep guessing a time when they are present. 2020-11-10 17:25:19 +01:00
Phil Elson
7b43eb0ea5 Rename Model to ConcentrationModel. 2020-11-10 17:19:19 +01:00
Phil Elson
200e7cb14b Apply ExposureModel to both the expert and calculator apps. 2020-11-10 16:46:35 +01:00
Phil Elson
43da2d7521 Implement exposed activity/mask wearing independently of the infected group. 2020-11-10 15:45:39 +01:00
Philip James Elson
050c9fd9ba Merge branch 'develop/refine_time_mesh_for_temp' into 'master'
Refine the time mesh for Geneva temperatures

Closes #72

See merge request cara/cara!70
2020-11-10 07:33:31 +00:00
Philip James Elson
a11762eb73 Merge branch 'develop/form-updates' into 'master'
Updates to UI form

Closes #69 and #64

See merge request cara/cara!72
2020-11-10 06:30:23 +00:00
gaazzopa
e7d9ba96c8 Office option interchangeable with meeting 2020-11-09 20:02:04 +01:00
gaazzopa
79ca14d088 Added report html title 2020-11-09 19:58:18 +01:00
gaazzopa
0b608ebc5d Finish time must be after start time 2020-11-09 19:55:06 +01:00
Nicolas Mounet
6dacddedbe Improve readability of tests; adding 2 end-to-end tests (on infection probability) 2020-11-09 18:32:56 +01:00
Nicolas Mounet
ddbfbf2631 GenevaTemperatures refined in the proper way in data.py 2020-11-09 17:22:15 +01:00
Nicolas Mounet
e63b4c9e6a Adding cara/data.py (forgotten in previous commit) 2020-11-09 17:17:03 +01:00
Nicolas Mounet
c264e6bfc2 Moving Geneva temperature from cara/models.py to cara/data.py 2020-11-09 17:11:26 +01:00
Nicolas Mounet
87c2a9bebd Adding refine method (with linear interpolation) in PiecewiseConstant class 2020-11-09 16:08:58 +01:00
Nicolas Mounet
d56731cebc Adding a test of the interpolation in the PiecewiseConstant.refine method 2020-11-09 16:02:11 +01:00
Andre Henriques
4bc097686c Merge branch 'patch-1' into 'master'
Update README.md

See merge request cara/cara!69
2020-11-09 13:01:59 +00:00
Andre Henriques
15529f18e7 Update README.md 2020-11-09 13:01:58 +00:00
Nicolas Mounet
225324cc5b Changing default mesh of temperatues to one point every 6 minutes (Geneva temperature) 2020-11-09 12:39:16 +01:00
Nicolas Mounet
5a5de009bc Adding a test to that a finer mesh has no impact in itself 2020-11-09 12:37:40 +01:00
Philip James Elson
44b1c60ab5 Merge branch 'writteninstructions' into 'master'
Detailed user instructions

See merge request cara/cara!67
2020-11-09 10:18:25 +00:00
Phil Elson
d02375c2e3 Reference the new calculator guide in the main README. 2020-11-09 11:16:20 +01:00
Phil Elson
c368ad4856 Renamed calculator user-guide, and broke sentences into lines for ease of maintenance. 2020-11-09 11:16:05 +01:00
James Devine
f94471f31a Detailed user instructions 2020-11-09 10:55:39 +01:00
Nicolas Mounet
ca7f8745aa Merge branch 'feature/n_windows' into 'master'
Allow WindowOpening to have more than one window of the given dimensions.

See merge request cara/cara!68
2020-11-09 08:51:10 +00:00
Phil Elson
8f973136e0 Allow WindowOpening to have more than one window of the given dimensions. 2020-11-09 09:43:47 +01:00
Philip James Elson
9f770b0887 Merge branch 'upstream/pizzazz2' into 'master'
Put the calculator form inside the CARA template.

See merge request cara/cara!66
2020-11-09 07:36:36 +00:00
Phil Elson
2b8f44b7dd Use the new layout template for both the form and the index page. 2020-11-07 12:15:23 +01:00
Phil Elson
a235fb2f5d Put the calculator form inside the CARA template. 2020-11-07 12:06:14 +01:00
Philip James Elson
1c4e24e5ba Merge branch 'fix/date-format' into 'master'
Updated date format to european

Closes #66

See merge request cara/cara!65
2020-11-07 10:55:24 +00:00
gaazzopa
9fdfee1cb7 Updated date format to european 2020-11-07 11:52:01 +01:00
Philip James Elson
150b098e43 Merge branch 'upstream/pizzazz2' into 'master'
Re-format all of the html, javascript and CSS to make it easier to move around subsequently.

See merge request cara/cara!64
2020-11-07 10:37:36 +00:00
Phil Elson
55894263ac Re-format all of the html, javascript and CSS to make it easier to move around subsequently. 2020-11-07 11:32:25 +01:00
Gabriella Azzopardi
7e7e89d45b Merge branch 'fix/no-reset-form' into 'master'
Don't reset the ventilation visibility when we hit back in the browser.

See merge request cara/cara!57
2020-11-07 08:58:15 +00:00
Philip James Elson
e039ceff2a Merge branch 'feature/usage-tracking' into 'master'
Add usage tracking for test-cara.web.cern.ch and cara.web.cern.ch.

See merge request cara/cara!63
2020-11-07 08:08:22 +00:00
Phil Elson
4b6e9c53c3 Add usage tracking for test-cara.web.cern.ch and cara.web.cern.ch. 2020-11-07 09:05:48 +01:00
Phil Elson
4f2fb894fa Implement no-ventilation option in calculator. 2020-11-07 00:03:46 +01:00
Phil Elson
d4a0566782 Don't reset the ventilation visibility when we hit back in the browser. 2020-11-06 23:45:17 +01:00
Philip James Elson
ae691a5c12 Merge branch 'fix/volume-in-report' into 'master'
Use the Jinja templating engine to remove pre-formatting values

See merge request cara/cara!62
2020-11-06 22:44:17 +00:00
Phil Elson
641d236aa9 Prevent arbitrary code execution exploits. 2020-11-06 23:41:42 +01:00
Phil Elson
89f1e6e62c Use the Jinja templating engine to remove pre-formatting values. 2020-11-06 23:32:25 +01:00
Philip James Elson
61ea8a8842 Merge branch 'enhancement/remove-temporary-form-dictionary-access' into 'master'
Enhancement/remove temporary form dictionary access

See merge request cara/cara!61
2020-11-06 22:16:22 +00:00
Philip James Elson
68c15e84cc Merge branch 'fix/volume-in-report' into 'master'
Ensure that the volume is correct in the report

See merge request cara/cara!60
2020-11-06 22:15:43 +00:00
Phil Elson
eb2f8d99e8 Remove the use of the direct dictionary (un validated) data in favour of the FormData class. 2020-11-06 23:12:04 +01:00
Phil Elson
762c4c3e49 Ensure that the volume is correct in the report. 2020-11-06 23:06:40 +01:00
Philip James Elson
c0057a144a Merge branch 'fix/date-picking' into 'master'
Ensure that the maximum number of infected people remains below the total number

Closes #65

See merge request cara/cara!59
2020-11-06 20:49:21 +00:00
Phil Elson
8ef0d41660 Ensure that the maximum number of infected people remains below the total number, even if pressing the back button. Closes #65. 2020-11-06 21:48:09 +01:00
Philip James Elson
0cab2dff0e Merge branch 'fix/date-picking' into 'master'
Only validate the date if it is required. Addresses the date part of #65.

See merge request cara/cara!58
2020-11-06 20:28:57 +00:00
Phil Elson
11e68887e0 Only validate the date if it is required. Addresses the date part of #65. 2020-11-06 21:26:56 +01:00
Philip James Elson
78bdc92eeb Merge branch 'Form-validation' into 'master'
Added datepicker validation

See merge request cara/cara!56
2020-11-06 19:47:26 +00:00
gaazzopa
3d80e054c1 Added datepicker validation 2020-11-06 20:06:29 +01:00