Commit graph

30 commits

Author SHA1 Message Date
Phil Elson
0d33c3cd08 Ensure that the application static files are available in Voila. 2020-11-20 13:22:13 +01:00
Phil Elson
ddc30e1ff9 Use the CARA logo without CERN logo in the Expert App. 2020-11-20 11:44:35 +01:00
Phil Elson
2075899c5e Update the expert app to include a logo. 2020-11-20 11:24:25 +01:00
Andre Henriques
04b49954f0 change title, add logo 2020-11-20 11:14:06 +01:00
Phil Elson
b043e52df3 Remove the wireframe notebook now that we use a vanilla HTML form instead. 2020-11-11 12:52:24 +01:00
Markus Kongstein Rognlien
cf2ca07768 Merge branch 'covid-calculator' into 'master'
Covid calculator

See merge request cara/cara!8
2020-10-28 09:40:58 +00:00
markus
b7bd89dcc8 remove empty cells 2020-10-27 16:07:17 +01:00
markus
cd50c4110f revert to master-state 2020-10-27 16:06:39 +01:00
markus
5fdf55d9ed padding tweaks 2020-10-27 15:16:14 +01:00
markus
ab8c0702ef add function for getting value 2020-10-27 11:51:49 +01:00
markus
afd6d4db58 fix double lunch-minute 2020-10-27 10:43:07 +01:00
markus
5c907455e3 preliminary notebook complete 2020-10-27 10:22:13 +01:00
Phil Elson
568f7ca56b Fix the broken mask selection widget. 2020-10-26 14:36:54 +01:00
Phil Elson
6463e04e71 Undo the change to the notebook. 2020-10-26 13:45:04 +01:00
markus
2a7fa5b106 add elements for setting time, date and breaks 2020-10-26 09:57:33 +01:00
Phil Elson
a95181612b Implement most of the model parameters in widgets. 2020-10-26 08:21:31 +01:00
markus
786524a8eb add padding between boxes 2020-10-22 16:24:15 +02:00
markus
3e3c0af9d7 add ventilation menu 2020-10-22 15:41:52 +02:00
markus
5e3b5826cc add mechanical ventilation box 2020-10-22 11:35:21 +02:00
markus
8cdd350157 use style to make enough room for description 2020-10-22 10:49:49 +02:00
markus
bdf9614f6a fix box for providing room dimensions 2020-10-22 10:40:40 +02:00
Phil Elson
f63e1d3760 Abstract the model state so that we can mutate it conveniently.
This rather large change adds a layer between the underlying (immutable) model and the application.
In doing so we can avoid the use of a global state (useful for the purposes of configuring multiple models in the same application later on) and it also unlocks the ability to implement an MVC-like separation of concerns - again, the intention is that when it comes to comparisons, we will just be able to re-use our application views.

I was hoping that ``cara.state`` could have been avoided in lieu of using traitlets, but unfortunately I found a number of limitations which were prohibitive for its use here.
Foremost of which was the lack of first-class dataclass support and the difficulty in needing either to use instances of the model (immutable) or duplicate the model and its structure in a mutable form and use the ``traitlets.Instance`` type.
Instead I opted for doing it myself - the ``cara.state`` module would make a very good standalone project in the future.
2020-10-21 20:59:01 +02:00
markus
ba257465c4 unfinished room parameter input 2020-10-21 16:42:10 +02:00
markus
f308c9d287 use HTML for title 2020-10-21 15:58:06 +02:00
markus
5cf0c4787f use placeholder as prompt 2020-10-21 15:52:21 +02:00
markus
aa229f4fb4 add intro section, but descriptions are cut off 2020-10-21 15:26:05 +02:00
markus
aa3a58caae update notebook with ventilation changes 2020-10-20 16:23:21 +02:00
markus
549cc7cbc2 import ipywidgets 2020-10-20 11:47:07 +02:00
markus
715aaf7d2e create covid-calculator.ipynb 2020-10-20 11:27:51 +02:00
Phil Elson
ca5633a988 Bring over the prototyped voila app, and handle installation dependencies correctly. 2020-10-20 09:51:34 +02:00