knitout_to_dat_python.dat_file_structure.dat_codes.option_lines module
Module containing the enumerations of left and right option lines.
This module defines enumerations that map option line names to their corresponding line numbers in DAT files. Left and right option lines control different aspects of knitting machine operation and configuration.
- class Left_Option_Lines(value, names=_not_given, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
Enum
Enumeration key of left-option lines to their line numbers.
Left option lines control various machine settings and operational parameters on the left side of the DAT file structure. Each enumeration value corresponds to a specific line number where that option is configured.
- __str__() str [source]
Return string representation with ‘L’ prefix.
- Returns:
String representation in format ‘L{value}’ where value is the line number.
- Return type:
- __repr__() str [source]
Return detailed string representation.
- Returns:
String representation in format ‘{name}({str_representation})’.
- Return type:
- class Right_Option_Lines(value, names=_not_given, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
Enum
Enumeration key of right-option lines to their line numbers.
Right option lines control various machine settings and operational parameters on the right side of the DAT file structure. Each enumeration value corresponds to a specific line number where that option is configured.
- __str__() str [source]
Return string representation with ‘R’ prefix.
- Returns:
String representation in format ‘R{value}’ where value is the line number.
- Return type:
- __repr__() str [source]
Return detailed string representation.
- Returns:
String representation in format ‘{name}({str_representation})’.
- Return type: