Skip to content

Wrap timedelta as list

create_timedelta_breakpoints accepts either a single integer or list of integers for the delta_vals but does not wrap the single integer case as a list. This led to an exception when trying to loop through the breakpoints since you can't loop through a naked integer.

This adds the same wrapper as in create_timedelta_labels to store a naked integer in a list with a single element.

Merge request reports

Loading