convert
Module¶
Conversion of colors to needle positions.
-
AYABInterface.convert.
colors_to_needle_positions
(rows)[source]¶ Convert rows to needle positions.
Returns: Return type: list
-
class
AYABInterface.convert.
NeedlePositions
(needle_coloring, colors, two_colors)¶ Bases:
tuple
-
__getnewargs__
()¶ Return self as a plain tuple. Used by copy and pickle.
-
__getstate__
()¶ Exclude the OrderedDict from pickling
-
static
__new__
(_cls, needle_coloring, colors, two_colors)¶ Create new instance of NeedlePositions(needle_coloring, colors, two_colors)
-
__repr__
()¶ Return a nicely formatted representation string
-
colors
¶ Alias for field number 1
-
needle_coloring
¶ Alias for field number 0
-
two_colors
¶ Alias for field number 2
-