Skip to content

Commit

Permalink
Merge pull request #34 from lsst-dm/u/womullan/jan21
Browse files Browse the repository at this point in the history
Jan 2021
  • Loading branch information
womullan committed Feb 17, 2021
2 parents 67eea9e + 68e681e commit 111fb7b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
3 changes: 3 additions & 0 deletions data/pmcs/202101-ME.xls
Git LFS file not shown
22 changes: 16 additions & 6 deletions milestones/burndown.py
Expand Up @@ -50,13 +50,23 @@ def burndown(args, milestones):
plt.plot(month_starts, model, label="Baseline")

achieved_months = [mnth for mnth in month_starts if mnth <= last_achieved_month]
achieved_months.append(
datetime(
achieved_months[-1].year,
achieved_months[-1].month + 1,
achieved_months[-1].day,
# Need to acount for year wrap
if achieved_months[-1].month == 12:
achieved_months.append(
datetime(
achieved_months[-1].year + 1,
1,
achieved_months[-1].day,
)
)
else:
achieved_months.append(
datetime(
achieved_months[-1].year,
achieved_months[-1].month + 1,
achieved_months[-1].day,
)
)
)
plt.plot(achieved_months, actual[: len(achieved_months)], label="Achieved")

plt.xlabel("Date")
Expand Down

0 comments on commit 111fb7b

Please sign in to comment.