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.

Direction_Specification = 1

Line number for direction specification settings.

Type:

int

Rack_Pitch = 2

Line number for rack pitch configuration.

Type:

int

Rack_Alignment = 3

Line number for rack alignment settings.

Type:

int

Rack_Direction = 4

Line number for rack direction specification.

Type:

int

Knit_Speed = 5

Line number for knit speed configuration.

Type:

int

Transfer_Speed = 6

Line number for transfer speed settings.

Type:

int

Pause_Option = 7

Line number for pause option configuration.

Type:

int

AMiss_Split_Flag = 12

Line number for AMiss split flag settings.

Type:

int

Transfer_Type = 13

Line number for transfer type specification.

Type:

int

__str__() str[source]

Return string representation with ‘L’ prefix.

Returns:

String representation in format ‘L{value}’ where value is the line number.

Return type:

str

__repr__() str[source]

Return detailed string representation.

Returns:

String representation in format ‘{name}({str_representation})’.

Return type:

str

__int__() int[source]

Return integer value of the option line.

Returns:

The line number associated with this left option.

Return type:

int

__hash__() int[source]

Return hash value of the option line.

Returns:

Hash value based on the integer value of the option line.

Return type:

int

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.

Direction_Specification = 1

Line number for direction specification settings.

Type:

int

Yarn_Carrier_Number = 3

Line number for yarn carrier number configuration.

Type:

int

Knit_Cancel_or_Carriage_Move = 5

Line number for knit cancel or carriage move settings.

Type:

int

Stitch_Number = 6

Line number for stitch number specification.

Type:

int

Drop_Sinker = 7

Line number for drop sinker configuration.

Type:

int

Line number for links process settings.

Type:

int

Carrier_Gripper = 10

Line number for carrier gripper configuration.

Type:

int

Presser_Mode = 11

Line number for presser mode settings.

Type:

int

Apply_Stitch_to_Transfer = 13

Line number for apply stitch to transfer configuration.

Type:

int

Hook_Operation = 15

Line number for hook operation settings.

Type:

int

__str__() str[source]

Return string representation with ‘R’ prefix.

Returns:

String representation in format ‘R{value}’ where value is the line number.

Return type:

str

__repr__() str[source]

Return detailed string representation.

Returns:

String representation in format ‘{name}({str_representation})’.

Return type:

str

__int__() int[source]

Return integer value of the option line.

Returns:

The line number associated with this right option.

Return type:

int

__hash__() int[source]

Return hash value of the option line.

Returns:

Hash value based on the integer value of the option line.

Return type:

int