summaryrefslogtreecommitdiff
path: root/gerber/tests
AgeCommit message (Collapse)AuthorFilesLines
2015-05-21Fix ADD statement parsing for concatened statements.Paulo Henrique Silva1-3458/+1
ADDxxx param statements were too greedy on the mofidiers and were matching more than it should in cases where there are no newlines after the statement like: '%ADD12C,0.305*%%LPD*%', in a single line. The '%' was not exluded form modifiers so it got confused with the %LPD*% concatened. top_copper.GTL example was changed to be in a single line now with no spaces at all and it works well.
2015-05-20Add support for PCBmodE generated files.Paulo Henrique Silva1-0/+18
PCBmodE uses a standard but probably undefined behaviour issue on Gerber where it defines circle apertures with a single modifier but leaves a trilling 'X' after it. 'X' is modifiers separator but when there is only one modifier the behaviour is undefined. For parsing we are just ignoring blank modifiers. Test updated to catch this case.
2015-05-16Add checks to ensure statement unit conversions are idempotentHamilton Kibbe2-14/+254
2015-04-27Allow 3 digits on Excellon tool selectionPaulo Henrique Silva1-0/+3
Fritzing uses more than 2 digits for tool in their Excellons. To comply with that, I check specifically for 3 or less digits and use as tool number, more than that we treat as the standard (2 for tool and 2 for compensation index)
2015-04-26Refactor primitive unit conversion and add regression coverage to testsHamilton Kibbe1-24/+310
2015-04-24Fix for #25. Checking was happening at the gerber/excellon file level, but I ↵Hamilton Kibbe1-38/+77
added units checking at the primitive level so the use case shown in the example is covered. Might want to throw a bunch more assertions in the test code (i started doing a few) to cover multiple calls to unit conversion functions
2015-04-14Fix AM statement testPaulo Henrique Silva1-2/+2
2015-04-07Small change on __str__ for SF StatementPaulo Henrique Silva1-1/+1
2015-04-07Fix Excellon repeat commandPaulo Henrique Silva1-1/+1
2015-03-06fix testsHamilton Kibbe1-9/+13
2015-03-05Fix parsing for multiline ipc-d-356 recordsHamilton Kibbe3-3/+4
2015-03-05Fix tests for macros with no variables.Paulo Henrique Silva1-5/+11
All AM*Primitive classes now handles float for all but the code modifiers. This simplifies the reading/parsing.
2015-02-21Merge pull request #20 from curtacircuitos/ipc-d-356Paulo Henrique Silva2-0/+230
Add IPC-D-356 Netlist Parsing
2015-02-20Add IPC-D-356 Netlist ParsingHamilton Kibbe2-0/+230
2015-02-20Fix floating point equality testPaulo Henrique Silva1-2/+2
2015-02-20Fix size test, board is slight out of origin, so size does change now that ↵Paulo Henrique Silva1-2/+2
we properly handle non-zero origins
2015-02-18Add offset operationHamilton Kibbe3-64/+216
2015-02-18Python 3 tests passingHamilton Kibbe3-5/+6
2015-02-18Make gerber.render a package & fix more relative import statementsPhilipp Klaus4-4/+4
2015-02-18Get unit conversion working for Gerber/Excellon filesHamilton Kibbe7-21/+388
Started operations module for file operations/transforms
2015-02-15Add cairo example code, and use example-generated image in readmeHamilton Kibbe1-0/+2
2015-02-15Tests and bugfixesHamilton Kibbe4-25/+314
2015-02-13Fix rendering for line with rectangular aperture per #12. Still need to do ↵Hamilton Kibbe1-11/+24
the same for arcs.
2015-02-12Update line primitive to take aperture parameterHamilton Kibbe1-22/+22
This fixes the exception referenced in #12. Still need to add rendering code for rectangle aperture lines and arcs. Rectangle strokes will be drawn as polygons by the rendering backends.
2015-02-09Tests and bugfixesHamilton Kibbe2-14/+165
2015-02-09Add aperture macro statement testsHamilton Kibbe2-2/+261
2015-02-08Fix write_gerber_value bugHamilton Kibbe1-0/+3
2015-02-02Added some Aperture Macro Primitives. Moved AM primitives to seperate fileHamilton Kibbe1-0/+77
2015-02-02testsHamilton Kibbe4-38/+201
2015-02-02More tests and bugfixesHamilton Kibbe4-19/+144
2015-02-01Added primitives and testsHamilton Kibbe2-7/+136
2015-01-26merge upstream changesHamilton Kibbe1-1/+1
2015-01-26Added some testsHamilton Kibbe3-0/+123
2015-01-25Changed zeros/zero suppression conventions to match file format specsHamilton Kibbe3-13/+41
2015-01-23Fix tests for leading zero suppressionHamilton Kibbe1-6/+6
2015-01-14Many additions to Excellon parsing/creation.Paulo Henrique Silva1-9/+26
CAUTION: the original code used zero_suppression flags in the opposite sense as Gerber functions. This patch changes it to behave just like Gerber code. * Add metric/inch conversion support * Add settings context variable to to_gerber just like Gerber code. * Add some missing Excellon values. Tests are not entirely updated.
2014-11-10Bunch of small fixes to improve Gerber read/write.Paulo Henrique Silva3-11/+18
2014-10-28Add arc rendering and testsHamilton Kibbe2-2/+88
2014-10-19Test updateHamilton Kibbe13-23/+14270
2014-10-10Added excellon format detectionHamilton Kibbe2-19/+63
2014-10-10Add testsHamilton Kibbe1-0/+155
2014-10-07fix excellon renderHamilton Kibbe2-37/+92
2014-10-07more testsHamilton Kibbe1-0/+119
2014-10-07More testsHamilton Kibbe1-4/+62
2014-10-07add testsHamilton Kibbe2-4/+22
2014-10-06add testsHamilton Kibbe1-0/+33
2014-10-06add testsHamilton Kibbe1-0/+9
2014-10-06add excellon statementsHamilton Kibbe1-2/+1
2014-09-30testsHamilton Kibbe1-0/+10
2014-09-30tests updateHamilton Kibbe3-0/+155