question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specify mitigation scenarios as intervals

See original GitHub issue

In some situations, it might be more convenient to specify the mitigation scenarios as time intervals:

--2020-03-01                    100%
2020-03-01 -- 2020-03-15         50%
2020-03-16 -- 2020-03-31         75%
2020-04-01 -- 2020-05-31         60%
2020-06-01 --                    50%

The data structure for this would work just about the same way as a time series of adjacent intervals, the main difference would be UI. Need to think about how to enforce that intervals tile time.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
ivan-aksamentovcommented, Mar 18, 2020

I was thinking about making the containment (mitigation) plot into a sort of a bar chart:

  • bar width corresponds to the time interval
  • bar height is the value
  • click on the bar (or on its continuation above the upper edge of it) adjusts the value
  • optionally, click and drag will display the date and the value being adjusted, for better UX
  • this would work for any time-aware parameter.
  • intervals can be non-uniform
  • interval can be set by the user
  • changing global start and end dates adds or removes the bars on the sides
  • optionally, when global dates were shrinked, and then expanded back, plot would remember the values lost on the sides and restore them

Additionally, we can represent the same data as a table. We could either display both or to add a toggle.

2reactions
rnehercommented, Mar 22, 2020

Here is another proposal to improve the specification of mitigation and infection control measures.

2020-03-01 -- 2020-04-15   schools closed        -10%
2020-03-15 -- 2020-05-31   bars, restaurants     -10%
2020-04-01 -- 2020-05-31   lock-down             -20%

One could have a date range selector and then include these as horizontal bars in the result plot. More measures could be added with an ‘add’ button (similar to filters in search interfaces). This would then translate into a time series with a few vertical steps. But the general logic of a linearly interpolated function would still hold, so this would require few changes in the algorithm.

The constraint that the combined measures can’t be more than 100% is most readily addressed by making these effects multiplicative (Effects of -10%, -20%, -15% would then combine to 0.90.80.85)

@rodolfoalmeida01 and @arieltonglet, if this is something you’d be keen on, let me know. Happy to touch base.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ancillary health effects of climate mitigation scenarios as ...
Ancillary health effects of climate mitigation scenarios as drivers of policy uptake: a review of air quality, transportation and diet ...
Read more >
Temperature increase of 21st century mitigation scenarios
We have examined a large set of projections for 21st Century emissions of a suite of greenhouse and other air pollutant gases. The...
Read more >
IPCC SPECIAL REPORT EMISSIONS SCENARIOS
These scenarios have been widely used in the analysis of possible climate change, its impacts, and options to mitigate climate change. In 1995,...
Read more >
A framework for national scenarios with varying emission ...
This NLPs approach permits hedging against future national target uncertainties by not specifying a single emissions reduction target, but ...
Read more >
A Practitioner's Guide to Climate Model Scenarios | GLISA
CLIMATE MODEL SELECTION: Your first step will be to choose the most appropriate climate models based ... new mitigation scenarios, RCP3.4 and an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found