Paulo Henrique Silva
ef589a0640
Migrate to pytest ( #111 )
...
* Migrate to pytest
All tests were update to use pytest.
Tests were alse black formatted. Eventually all code
will be black formatted but need to merge some PRs first.
2019-11-26 00:37:41 -03:00
Hamilton Kibbe
ca6c819ca8
Add test that reproduces #77
2017-11-14 09:11:49 -05:00
Hamilton Kibbe
e07ccc805f
Fix drill tests
2016-11-18 08:14:26 -05:00
Hamilton Kibbe
33e8494318
Add more tests for primitives
2016-11-18 08:11:56 -05:00
Hamilton Kibbe
422c86bcc6
Merge upstream changes
2016-11-06 14:44:40 -05:00
Hamilton Kibbe
724c2b3bce
Finish Merge, most tests passing
2016-11-05 20:56:47 -04:00
Hamilton Kibbe
5af19af190
Commit partial merge so I can work on the plane
2016-09-24 02:28:36 +08:00
Garret Fick
8d5e782ccf
Fix multiple problems with the merge. There are still errors, but I will intentionally leave them because future merges might resolve them
2016-08-06 09:51:58 +08:00
Hamilton Kibbe
8cd842a41a
Manually mere rendering changes
2016-08-06 09:40:40 +08:00
Garret Fick
965d3ce23b
Add more tests for rendering to PNG. Start adding tests for rendering to Gerber format. Changed definition of no hole to use None instead of 0 so we can differentiate when writing to Gerber format. Makde polygon use hole diameter instead of hole radius to match other primitives
2016-07-24 22:08:31 +08:00
Garret Fick
7cd6acf126
Add many render tests based on the Umaco gerger specification. Fix multiple rendering bugs, especially related to holes in flashed apertures
2016-07-24 17:08:47 +08:00
Garret Fick
f0585baefa
Create first test that renders and validates the the rendered PNG is correct.
2016-07-17 13:14:54 +08:00
Garret Fick
52c6d4928a
Fix most broken tests so that I can safely merge into changes with known expected test result
2016-07-16 15:49:48 +08:00
Hamilton Kibbe
5476da8aa3
Fix a bunch of rendering bugs.
...
- 'clear' polarity primitives no longer erase background
- Added aperture macro support for polygons
- Added aperture macro rendring support
- Renderer now creates a new surface for each layer and merges them instead of working
directly on a single surface
- Updated examples accordingly
2016-01-21 03:57:44 -05:00
Hamilton Kibbe
cb2fa34e88
Add support for arcs in regions.
...
This fixes the circular cutout issue described in #32 . Regions were previously stored as a collection of points, now they are stored as a collection of line and arc primitives.
2015-08-09 15:11:13 -04:00
Hamilton Kibbe
e34e1078b6
Refactor primitive unit conversion and add regression coverage to tests
2015-04-26 02:58:12 -04:00
Hamilton Kibbe
390838fc8b
Fix for #25 . Checking was happening at the gerber/excellon file level, but I 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-24 10:54:13 -04:00
Hamilton Kibbe
68619d4d5a
Fix parsing for multiline ipc-d-356 records
2015-03-05 22:42:42 -05:00
Hamilton Kibbe
5966d7830b
Add offset operation
2015-02-18 23:13:23 -05:00
Philipp Klaus
7ace94b023
Make gerber.render a package & fix more relative import statements
2015-02-18 15:44:57 +01:00
Hamilton Kibbe
288ac27084
Get unit conversion working for Gerber/Excellon files
...
Started operations module for file operations/transforms
2015-02-18 04:31:23 -05:00
Hamilton Kibbe
5cf1fa74b4
Tests and bugfixes
2015-02-15 02:20:02 -05:00
Hamilton Kibbe
5e23d07bcb
Fix rendering for line with rectangular aperture per #12 . Still need to do the same for arcs.
2015-02-13 09:37:27 -05:00
Hamilton Kibbe
8f69c1dfa2
Update line primitive to take aperture parameter
...
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-12 11:28:50 -05:00
Hamilton Kibbe
1cc20b351c
tests
2015-02-02 11:42:47 -05:00
Hamilton Kibbe
d98d23f8b5
More tests and bugfixes
2015-02-02 00:43:08 -05:00
Hamilton Kibbe
360eddc3c4
Added primitives and tests
2015-02-01 13:40:08 -05:00
Hamilton Kibbe
f5abd5b0bd
Add arc rendering and tests
2014-10-28 22:11:43 -04:00