knitout_to_dat_python.dat_file_structure.dat_bookend_sequences module
Module for generating the startup and ending sequences on all Dat files.
This module provides functions for creating the standardized startup and finishing sequences that are required at the beginning and end of all DAT files. These sequences ensure proper initialization and termination of knitting operations on the machine.
- finish_knit_sequence(pattern_width: int) list[Carriage_Pass] [source]
Generate the sequence of carriage passes needed to finish a knitting process.
Creates a standardized ending sequence consisting of three carriage passes: a leftward front bed pass, a rightward back bed pass, and a leftward all-needle pass. This sequence ensures proper completion of the knitting process and prepares the machine for pattern termination.
- startup_knit_sequence(pattern_width: int) list[Carriage_Pass] [source]
Generate the sequence of carriage passes needed to start up a knitting process.
Creates a standardized startup sequence consisting of three carriage passes: * A rightward miss pass on the front bed * A leftward knit pass on the front bed * A rightward knit pass on the back bed.
This sequence ensures proper initialization of the knitting process and prepares the machine for pattern execution.