prsctrl.data.check.list_to_ranges# list_to_ranges(l: list[float | int], step=1) → list[float | int | tuple[float | int, float | int]][source]# Convert a list of integer values to a list of start and end points Eg: [1, 2, 3, 4, 5] -> [(1, 5)] [1, 2, 3, 5, 7, 8] -> [(1, 3), 5, (7, 8)]