utils Module¶
Utility methods.
-
AYABInterface.utils.sum_all(iterable, start)[source]¶ Sum up an iterable starting with a start value.
In contrast to
sum(), this also works on other types likelistsandsets.
-
AYABInterface.utils.number_of_colors(rows)[source]¶ Determine the numer of colors in the rows.
Return type: int
-
AYABInterface.utils.next_line(last_line, next_line_8bit)[source]¶ Compute the next line based on the last line and a 8bit next line.
The behaviour of the function is specified in The reqLine Message.
Parameters: Returns: the next line closest to
last_lineSee also