summaryrefslogtreecommitdiff
path: root/lib/output.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-08-27 15:36:54 -0400
committerLex Neva <github.com@lexneva.name>2018-08-27 15:36:54 -0400
commit165d96e3b182d28388b84cc49680a34be033e837 (patch)
treebf9c5ef01c3cb6fa1b16e55eabdbf9d9aaf9500e /lib/output.py
parent7319937ea6c568aba8d613eed66433ddb24b6cc3 (diff)
show command name in simulator (STITCH, JUMP, etc)
Diffstat (limited to 'lib/output.py')
-rw-r--r--lib/output.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/output.py b/lib/output.py
index d5c513e2..147d084e 100644
--- a/lib/output.py
+++ b/lib/output.py
@@ -84,4 +84,12 @@ def write_embroidery_file(file_path, stitch_plan, svg):
"full_jump": True,
}
+ if file_path.endswith('.csv'):
+ # Special treatment for CSV: instruct pyembroidery not to do any post-
+ # processing. This will allow the user to match up stitch numbers seen
+ # in the simulator with commands in the CSV.
+ settings['max_stitch'] = float('inf')
+ settings['max_jump'] = float('inf')
+ settings['explicit_trim'] = False
+
pyembroidery.write(pattern, file_path, settings)