Support for interpreting knitout files used for controlling automatic V-Bed Knitting machines.
Project description
knitout_interpreter
Description
Support for interpreting knitout files used for controlling automatic V-Bed Knitting machines. This complies with the Knitout specification created by McCann et al.
Table of Contents
Installation
pip install knitout-interpreter
Usage
Run Knitout
To execute a knitout file (e.g., "example.k") on a virtual knitting machine, you can use the run_knitout function from the run_knitout Module. This will return a list of knitout-line objects in the order of execution, the virtual knitting machine created and after the knitout operations have completed, and the knitgraph that is rendered by these knitout operations.
from knitout_interpreter.run_knitout import run_knitout
knitout_lines, knitting_machine_state, knitted_knit_graph = run_knitout("example.k")
Knitout Executer
The Knitout Execute Class provides additional support for analyzing an executed knitout program.
It provides the following functionality:
- Determining the execution time of a knitout program measured in carriage passes (not lines of knitout).
- Finding the left and right most needle indices that are used during execution. This can be used to determine the width needed on a knitting machine.
- Testing the knitout instructions against common knitting errors
- Reorganizing a knitout program into carriage passes (such as sorting xfers to be in carriage pass order) and writing these out to a new file.
License
knitout-interpreter
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for knitout_interpreter-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e80599f61e0b24478455ffb59baaf09d55de6d381dd2cdee732edee92ecedee |
|
MD5 | 601ae62f0819b1bf6b7daf8501ed99e7 |
|
BLAKE2b-256 | ff03841395f62f6d637c771c452a0c32bff7e6c6fe6a2ffb695d4580af381b6c |
Hashes for knitout_interpreter-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f19b556bf6a7590fee544b4b66e4d96bc118e0aae0362f21b7212d71f4749c41 |
|
MD5 | 4d840f93a520fa47a1ee0549e41c10b5 |
|
BLAKE2b-256 | f7e7161257aab093f3b89bd224c0c890181ad0082eec508ae5b5d3d20f6738b2 |