Open gavento opened 3 years ago
Notes: Commands to execute the loop:
# Add one iteration of triggers
poetry run ./run_luigi UpdateNPITriggers --input-batch data-dir/outputs/gleam-models.hdf5 --output-batch data-dir/outputs/gleam-models-1.hdf5 --NPITriggers-triggers ~/download/Example\ NPI\ triggers\ -\ Sheet1.csv
# Force Luigi to re-export the (new) batch defs
rm ~/GLEAMviz-data/sims/ExportSimulationDefinitions.success
poetry run ./run_luigi ExportSimulationDefinitions --GenerateGleamBatch-generated-batch-filename data-dir/outputs/gleam-models-1.hdf5
### <run gleam>
# Import gleam results
./run_luigi ExtractSimulationsResults --models-file data-dir/outputs/gleam-models-1-ran.hdf5 --GenerateGleamBatch-generated-batch-filename data-dir/outputs/gleam-models-1.hdf5
# Repeat from the start for a while ...
poetry run ./run_luigi WebExport --overwrite --WebExport-export-name test-t1 --ExtractSimulationsResults-models-file data-dir/outputs/gleam-models-2.hdf5
poetry run ./run_luigi WebUpload --WebUpload-channel test-t1 --WebUpload-exported-data data-dir/outputs/web-exports/test-t1
Description
We want to be able to plot simulations with NPIs triggered by the current situation.
NPI triggers are:
The NPIs do not have to be concrete, only the R reduction (resp. beta reduction) matters.
Design
(User interface has some details fleshed out)
triggered_NPIs
in the batch HDF5 file is used to store which NPI levels are activated and when (hard to distinguish them from the exceptions in the XMLs)User interface and process
Template for NPI triggers doc (to be downloaded as csv)
The steps are marked [old] if they are exactly the same as without triggers, [new] if new or modified.
A0.hdf5
(example name) with scenarios withGenerateGleamBatch
as usual (from base def XML, infections, ...)A0.hd5
to GLEAM withExportSimulationDefinitions
ExtractSimulationsResults
intoA0.hdf5
triggers.csv
)A1.hdf5
fromA0.hdf5
andtriggers.csv
withUpdateBatchTriggers
(new task)Repeat few times (suggestion: 3) for N=1,2,3,...
A(N).hd5
to GLEAM withExportSimulationDefinitions
ExtractSimulationsResults
intoA(N).hdf5
A(N+1).hdf5
fromA(N).hdf5
andtriggers.csv
withUpdateBatchTriggers
(new task)Then:
A(N+1).hdf5
inWebExport
Problems and caveats