summaryrefslogtreecommitdiff
path: root/lib/output.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-09-12 20:49:31 -0400
committerGitHub <noreply@github.com>2018-09-12 20:49:31 -0400
commit3fd741a1a4218b6559184aaadcde8abca178bde2 (patch)
tree638a96776f6deecb82150b2b97efb372084e464c /lib/output.py
parenteff7c8d8ce7c9c1f8396c99bcf5fc15078ff99b7 (diff)
parenta876066c75eafc20547b055c5dffe8e89e4c327f (diff)
Merge pull request #284 from inkstitch/simulator-timeline
simulator timeline
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)