diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-09-12 20:51:16 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-09-12 20:51:16 -0400 |
| commit | d30507171b04f37871db74609c0a521325bddbd1 (patch) | |
| tree | ac06f38cde84e676f8aa8e91f08b71d45b9f2642 /lib/output.py | |
| parent | d398e10b853840261ddf04dc5fca20a05ad74b51 (diff) | |
| parent | 3fd741a1a4218b6559184aaadcde8abca178bde2 (diff) | |
Merge remote-tracking branch 'origin/master' into lexelby/bug-fixes
Diffstat (limited to 'lib/output.py')
| -rw-r--r-- | lib/output.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/output.py b/lib/output.py index cf7895e8..ed97ef04 100644 --- a/lib/output.py +++ b/lib/output.py @@ -86,6 +86,14 @@ 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 + try: pyembroidery.write(pattern, file_path, settings) except IOError as e: |
