knitout_interpreter.knitout_operations package
knitout_operations: Individual knitout instruction implementations.
This module contains all the instruction classes that represent individual knitout operations. These classes implement the complete Knitout specification v2, providing Python objects for every type of instruction that can appear in a knitout file.
The instructions are organized into several categories based on their function:
- Needle Operations:
Instructions that operate on specific needles to manipulate loops and yarn. These form the core knitting operations and directly affect the fabric structure.
- Carrier Operations:
Instructions that manage yarn carriers - the system that supplies yarn to the knitting needles. These control yarn insertion and removal.
- Machine Control:
Instructions that control machine state, including bed alignment (racking), execution pauses, and other machine-level operations.
- Header Declarations:
Special instructions that appear at the beginning of knitout files to specify machine configuration, yarn properties, and other setup parameters.
- Base Classes:
Fundamental classes that provide common functionality and type definitions for all instruction types.
- Instruction Execution Model:
Each instruction class implements an execute() method that applies the instruction’s effects to a virtual knitting machine state. This allows for simulation, validation, and analysis of knitout programs before running them on physical machines.
Submodules
- knitout_interpreter.knitout_operations.Header_Line module
- knitout_interpreter.knitout_operations.Knitout_Line module
- knitout_interpreter.knitout_operations.Pause_Instruction module
- knitout_interpreter.knitout_operations.Rack_Instruction module
- knitout_interpreter.knitout_operations.carrier_instructions module
- knitout_interpreter.knitout_operations.kick_instruction module
- knitout_interpreter.knitout_operations.knitout_instruction module
Knitout_Instruction_Type
Knitout_Instruction_Type.In
Knitout_Instruction_Type.Inhook
Knitout_Instruction_Type.Releasehook
Knitout_Instruction_Type.Out
Knitout_Instruction_Type.Outhook
Knitout_Instruction_Type.Stitch
Knitout_Instruction_Type.Rack
Knitout_Instruction_Type.Knit
Knitout_Instruction_Type.Tuck
Knitout_Instruction_Type.Split
Knitout_Instruction_Type.Drop
Knitout_Instruction_Type.Xfer
Knitout_Instruction_Type.Miss
Knitout_Instruction_Type.Kick
Knitout_Instruction_Type.Pause
Knitout_Instruction_Type.get_instruction()
Knitout_Instruction_Type.is_carrier_instruction
Knitout_Instruction_Type.is_needle_instruction
Knitout_Instruction_Type.is_miss_instruction
Knitout_Instruction_Type.in_knitting_pass
Knitout_Instruction_Type.all_needle_instruction
Knitout_Instruction_Type.directed_pass
Knitout_Instruction_Type.requires_carrier
Knitout_Instruction_Type.requires_second_needle
Knitout_Instruction_Type.allow_sliders
Knitout_Instruction_Type.compatible_pass()
Knitout_Instruction
- knitout_interpreter.knitout_operations.knitout_instruction_factory module
- knitout_interpreter.knitout_operations.needle_instructions module
Needle_Instruction
Needle_Instruction.made_loops
Needle_Instruction.moved_loops
Needle_Instruction.dropped_loops
Needle_Instruction.carrier_set
Needle_Instruction.needle_2
Needle_Instruction.direction
Needle_Instruction.needle
Needle_Instruction.get_yarns()
Needle_Instruction.get_carriers()
Needle_Instruction.has_second_needle
Needle_Instruction.has_direction
Needle_Instruction.has_carrier_set
Needle_Instruction.implied_racking
Loop_Making_Instruction
Knit_Instruction
Tuck_Instruction
Split_Instruction
Drop_Instruction
Xfer_Instruction
Miss_Instruction