Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion python/labours/modes/burndown.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def load_burndown(
)
daily[(last - start).days :] = 0
# Resample the bands
aliases = {"year": "A", "month": "M"}
aliases = {"year": "A", "month": "M", "day": "D"}
resample = aliases.get(resample, resample)
periods = 0
date_granularity_sampling = [start]
Expand All @@ -343,6 +343,11 @@ def load_burndown(
return load_burndown(
header, name, matrix, "month", report_survival=False
)
elif resample == "M":
print("too loose resampling - by month, trying by day")
return load_burndown(
header, name, matrix, "day", report_survival=False
)
else:
raise ValueError("Too loose resampling: %s. Try finer." % resample)
date_range_sampling = pandas.date_range(
Expand Down