Skip to content

Commit 2f7ce87

Browse files
authored
Update README.md
1 parent a152be2 commit 2f7ce87

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,13 @@ pattern = pyembroidery.read_pes(file, None, pattern)
217217
# or even chain together read calls
218218
pattern = pyembroidery.read("secondread.dst", None, pyembroidery.read("firstread.jef"))
219219
```
220+
*NOTE*: The merged pattern will still have an `END` command at the end of the first loaded pattern.
220221

221-
This will cause the pattern to have the stitches from both files.
222-
222+
If you intend to write the merged pattern as a single unended pattern, convert the `END` commands to `NO_COMMAND` commands.
223+
```python
224+
for stitch in pattern.get_match_commands(pyembroidery.END):
225+
stitch[2] = pyembroidery.NO_COMMAND
226+
```
223227

224228
Writing:
225229
---

0 commit comments

Comments
 (0)