Closed oclyke closed 4 years ago
Now that I managed to hide my changes to those pesky .pyc
files I'd say this is ready for testing / review.
I'm using these changes to update the Artemis Dev Kit
example usage:
python buzzard.py -c tests/collection.txt -d myCollectedLabels -o lib
: uses the test collection text file and outputs to 'myCollectedLabels.lbr'python buzzard.py "some additional label to add" -d myCollectedLabels -o lib -w a
: uses the original syntax (w/o a collection script) to append another label to 'myCollectedLabels.lbr'P.s. I am seeing bugs with the ability to append using normal syntax. Will try to resolve
Phew... I think those commits managed to fix it.
When I got to testing this in an actual use case I came up with a script of about 50 labels. Eventually I needed a duplicate label with a different size so I discovered a bug in the serial number detection for the append mode.
It should not be too hard to fix - just create a good regular expression to peel the serial number off the end of the string right? Well in the case of generating pin numbers the current name format (NAMESERIAL) is hard to parse.
I've started a new branch that changes the format to SERIAL_NAME which has two benefits: 1) able to easily solve the serial number detection issue 2) labels as shown in Eagle are now in the same order as they appear in your script
When completed this PR will allow users to create a list of labels with unique options that can all be processed into a single output.