EmbroidePy / pyembroidery

pyembroidery library for reading and writing a variety of embroidery formats.
MIT License
181 stars 33 forks source link

Test files not included #93

Closed JaredPhelps closed 4 years ago

JaredPhelps commented 4 years ago

Hello - This is a question more than an issue - I'm new to python and interested in learning embroidery formats. I thought a good way for me to better understand both would be to debug through the tests in this project, but it doesn't seem like the test files are included. Am I missing them, or can I download them from somewhere?

Thanks! Jared

tatarize commented 4 years ago

The testing here is pretty robust but mostly intended to prove and keep the functionality of things on the up-and-up so changes don't break things. They don't however, contain a large number of preassembled files. They tend to produce them dynamically, saving them, loading them, and converting them. Reloading them and tweaking them in different ways.


There is the samples project where I took some very basic files and saved identical files with a lot of different proprietary programs in a bunch of different formats.

https://github.com/EmbroidePy/samples

That should have a bunch of file samples for what other software writes.


I also write a pretty significant amount of documentation on various formats and how they work

https://edutechwiki.unige.ch/en/Embroidery_format

And all the different formats are laid out in a pretty deliberate effort to make them comprehensible if you're debugging through the loading of a file.


I usually just used mass-convert.py and load a bunch of files into a convert directory and have a results directory and debug all the work it does when doing all the conversion stuff. Since it's gotta load all the files I put in ./convert and makes every file type it can write for ./results

https://github.com/EmbroidePy/pyembroidery-CLI/blob/master/mass_convert.py

JaredPhelps commented 4 years ago

Thank you, that's exactly what I was looking for!