Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarize authored Jun 18, 2019
1 parent a152be2 commit 2f7ce87
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,13 @@ pattern = pyembroidery.read_pes(file, None, pattern)
# or even chain together read calls
pattern = pyembroidery.read("secondread.dst", None, pyembroidery.read("firstread.jef"))
```
*NOTE*: The merged pattern will still have an `END` command at the end of the first loaded pattern.

This will cause the pattern to have the stitches from both files.

If you intend to write the merged pattern as a single unended pattern, convert the `END` commands to `NO_COMMAND` commands.
```python
for stitch in pattern.get_match_commands(pyembroidery.END):
stitch[2] = pyembroidery.NO_COMMAND
```

Writing:
---
Expand Down

0 comments on commit 2f7ce87

Please sign in to comment.