Commit e315c086 authored by Chris Jewell's avatar Chris Jewell
Browse files

Fixed date error in plot_case_incidence.

parent 42a41e04
......@@ -41,9 +41,10 @@ def plot_prediction(prediction_period, sims, case_reports):
def plot_case_incidence(dates, sims):
def plot_case_incidence(date_range, sims):
# Number of new cases per day
dates = np.arange(date_range[0], date_range[1])
new_cases = sims[:, :, :, 3].sum(axis=2)
new_cases = new_cases[:, 1:] - new_cases[:, :-1]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment