Closed hamishgibbs closed 4 years ago
@seabbs
So the standard approach would have been to accept my PR and then do another PR with these changes but all good :).
Sounds like a sensible update for summaryData.
It looks like this PR is missing a fix I pushed to the other one earlier (arrgh git is complicated!)
So implementation should all work as using readInEpinow2 but I'll check when I next update.
Apologies for the confusion - I will go look and add the fix from the previous branch.
Had a bit of confusion about the correct branch to push to...
But I have brought your changes here and changed rt_vis to accept
Region
/region
as defaults, rather thanCountry
/country
.Also - you are correct that
summaryData
should be included in thertData
list - not as a separate file likegeoData
.Now, all
rtData
must contain asummaryData
field.Also - the map will now update when the data source is toggled (i.e. 'Cases' or 'Deaths') with the new summary data displayed.
Docs still need updating but could you check over these changes before I merge? It may change your current implementation unless you are using
readInEpiNow2
which I believe should work the same in this new format, perhapsregion_var
will need to be changed appropriately.