Skip to content

Commit 232d4f9

Browse files
authored
Merge pull request #240 from InstituteforDiseaseModeling/master
Update webapp with paper link
2 parents a472b46 + 6811bc5 commit 232d4f9

File tree

6 files changed

+22
-7
lines changed

6 files changed

+22
-7
lines changed

CHANGELOG.rst

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ What's new
33

44
All notable changes to the codebase are documented in this file. Note: in many cases, changes from multiple patch versions are grouped together, so numbering will not be strictly consecutive.
55

6+
7+
Version 1.0.2 (2020-05-10)
8+
--------------------------
9+
- Added uncertainty to the ``plot_result()`` method of MultiSims.
10+
- Added documentation and webapp links to the paper.
11+
12+
613
Version 1.0.1 (2020-05-09)
714
--------------------------
815
- Added argument ``as_date`` for ``sim.date()`` to return a ``datetime`` object instead of a string.

README.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ indicators such as numbers of infections and peak hospital demand. Covasim can
88
also be used to explore the potential impact of different interventions, including
99
social distancing, school closures, testing, contact tracing, and quarantine.
1010

11-
The Covasim webapp is available at https://app.covasim.org.
11+
The scientific paper describing Covasim is available at http://paper.covasim.org.
12+
The recommended citation is:
13+
14+
Kerr CC, Stuart RM, Mistry D, Abeysuriya RG, Hart G, Rosenfeld R, Selvaraj P, Núñez RC, Hagedorn B, George L, Izzo A, Palmer A, Delport D, Bennette C, Wagner B, Chang S, Cohen JA, Panovska-Griffiths J, Jastrzębski M, Oron AP, Wenger E, Famulare M, Klein DJ (2020). *Covasim: an agent-based model of COVID-19 dynamics and interventions*. Institute for Disease Modeling. Available at http://paper.covasim.org.
15+
16+
The Covasim webapp is available at http://app.covasim.org.
1217

1318
Questions or comments can be directed to [email protected], or on this project's
1419
GitHub_ page. Full information about Covasim is provided in the documentation_.

covasim/plotting.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ def plot_result(sim, key, fig_args=None, plot_args=None, axis_args=None, scatter
293293
# Gather results
294294
res = sim.results[key]
295295
res_t = sim.results['t']
296-
res_y = res.values
297296
if color is None:
298297
color = res.color
299298

@@ -309,7 +308,9 @@ def plot_result(sim, key, fig_args=None, plot_args=None, axis_args=None, scatter
309308
# Do the plotting
310309
if label is None:
311310
label = res.name
312-
ax.plot(res_t, res_y, c=color, label=label, **args.plot)
311+
if res.low is not None and res.high is not None:
312+
ax.fill_between(res_t, res.low, res.high, color=color, **args.fill) # Create the uncertainty bound
313+
ax.plot(res_t, res.values, c=color, label=label, **args.plot)
313314
plot_data(sim, key, args.scatter) # Plot the data
314315
plot_interventions(sim, ax) # Plot the interventions
315316
title_grid_legend(ax, res.name, grid, commaticks, setylim, args.legend) # Configure the title, grid, and legend

covasim/version.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
__all__ = ['__version__', '__versiondate__', '__license__']
44

5-
__version__ = '1.0.1'
6-
__versiondate__ = '2020-05-09'
5+
__version__ = '1.0.2'
6+
__versiondate__ = '2020-05-10'
77
__license__ = f'Covasim {__version__} ({__versiondate__}) — © 2020 by IDM'

covasim/webapp/cova_app.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ var vm = new Vue({
160160
copyright_year: copyright_year(),
161161
github_url: "https://github.com/institutefordiseasemodeling/covasim",
162162
org_url: "https://idmod.org",
163-
docs_url: "https://institutefordiseasemodeling.github.io/covasim-docs",
163+
docs_url: "http://docs.covasim.org",
164+
paper_url: "http://paper.covasim.org",
164165
license: 'Loading...',
165166
notice: 'Loading...'
166167
},

covasim/webapp/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<b-navbar-brand href="#">{{ app.title }}</b-navbar-brand>
3838
<b-navbar-nav class="ml-auto">
3939
<b-nav-item :href="app.docs_url" target="_blank">Documentation</b-nav-item>
40+
<b-nav-item :href="app.paper_url" target="_blank">Paper</b-nav-item>
4041
<b-nav-item v-b-modal.about>About</b-nav-item>
4142
<b-nav-item href="https://institutefordiseasemodeling.github.io/covasim-docs/whatsnew.html" target="_blank">{{app.version}}</b-nav-item>
4243
</b-navbar-nav>
@@ -46,7 +47,7 @@
4647
<b-modal id="about" ok-only ok-variant="secondary" ok-title="Close">
4748
<template v-slot:modal-title>About {{ app.title }}</template>
4849
<p>{{ app.title }} is an agent-based model that simulates the transmission of COVID-19 (novel coronavirus, SARS-CoV-2) in a population. Each individual in the model may pass through the following stages of COVID-19 infection: susceptible, exposed, infectious, and recovered (SEIR). The epidemiological parameter values are taken from literature.</p>
49-
<p>Viral transmission occurs on a fixed contact network with undirected edges. Each day, infectious individuals expose susceptible individuals to possible infection. By default, the daily probability of infection, number of contacts, and mean duration of infectiousness roughly equates to R0 = 2.5 and a doubling time of 6-7 days. For more information, please visit the <a :href="app.github_url" target="_blank">GitHub</a> repository.</p>
50+
<p>Viral transmission occurs on a fixed contact network with undirected edges. Each day, infectious individuals expose susceptible individuals to possible infection. By default, the daily probability of infection, number of contacts, and mean duration of infectiousness roughly equates to R0 = 2.5 and a doubling time of 6-7 days. For more information, please read the <a :href="app.paper_url" target="_blank">paper</a> or visit the <a :href="app.github_url" target="_blank">GitHub</a> repository.</p>
5051
<p><b>Note:</b> Models are only as good as the values of the parameters put into them. This is a rapidly changing situation, and we will update content as relevant information is received.</p>
5152
<p><b>Acknowledgements:</b> Covasim is currently under active development by IDM's COVID-19 Response Team. Model development is led by Daniel Klein, Cliff Kerr, Robyn Stuart, Romesh Abeysuriya, and Dina Mistry. UI design is led by Lauren George, William Chen, and Scott Ayers, inspired by a prototype from Brian Lovin. For the full list of contributors, please see our <a href="https://github.com/InstituteforDiseaseModeling/covasim/graphs/contributors" target="_blank">Contributors</a> page.</p>
5253
</b-modal>

0 commit comments

Comments
 (0)