Commit graph

390 commits

Author SHA1 Message Date
Hamilton Kibbe
7c20bd3699
Merge pull request #87 from ju5t/full-filename-regex
Match full filename instead of the base name
2018-06-27 12:31:00 -05:00
Hamilton Kibbe
66a1a1ca69
Merge pull request #85 from ju5t/skip-subdirectories
Skip subdirectories during import
2018-06-27 12:30:04 -05:00
ju5t
8dd8a87fc0 Match full filename instead of the base name
Regular expressions only matched the base name. This matches the
entire filename which allows for more advanced regular expressions.
2018-06-26 22:17:45 +02:00
ju5t
7cd3d53252 Skip subdirectories during import
If a directory contains subdirectories from_directory throws an
exception.
2018-06-25 09:43:23 +02:00
Hamilton Kibbe
31062ba2ce
Merge pull request #80 from jaseg/master
Add hole support to ADParamStmt.rect and fix cairocffi compatibility
2017-12-01 15:21:55 -05:00
jaseg
e5597e84a8 Use positional arguments for cairo.Context.arc
cairocffi 0.6 does not support keyword args.
2017-11-25 16:15:00 +01:00
jaseg
b87629c2ae Add hole support to ADParamStmt.rect 2017-11-25 16:14:23 +01:00
Hamilton Kibbe
fa9f2c3a74
Merge pull request #76 from ju5t/guess-layer
Check gerber content for layer hints
2017-11-22 11:15:13 -05:00
Hamilton Kibbe
4bd2f6c7da
Merge pull request #79 from curtacircuitos/fix-slot-position
Fix slot position
2017-11-16 09:56:03 -05:00
Hamilton Kibbe
c2ed707b52 Fix bounding box calculation for Slot primitives per #77 2017-11-14 09:15:06 -05:00
Hamilton Kibbe
ca6c819ca8 Add test that reproduces #77 2017-11-14 09:11:49 -05:00
Hamilton Kibbe
e12a04fc16 Fix error in slot rendering from #77 2017-11-01 16:09:06 -04:00
ju5t
9ae238bf7a Check gerber content for layer hints 2017-11-01 16:23:22 +01:00
Hamilton Kibbe
8301011abd Merge pull request #73 from kliment/master
Remove dependency on scipy by adding quickhull implementation to utils
2017-09-22 08:50:40 -04:00
Kliment Yanev
385de1df0c Set travis distro to precise 2017-09-18 11:22:58 +02:00
Kliment Yanev
5cf4124035 Remove references to scipy from travis config and setup.py 2017-09-18 10:23:08 +02:00
Kliment Yanev
1cb6ec667a Remove scipy from requirements.txt 2017-09-16 14:52:44 +02:00
Kliment Yanev
a08ecc922d Implement quickhull to remove scipy dependency 2017-09-16 14:48:44 +02:00
Hamilton Kibbe
7ad6c3f6ac Fix handling of multi-line strings per #66 2017-07-04 02:11:52 -04:00
Hamilton Kibbe
ea0643dcf4 Merge pull request #67 from jmargeta/python_3_fix
Add GerberParser fix for Python 3.x
2017-07-04 01:31:32 -04:00
Hamilton Kibbe
e754f59468 Remove rest of mixed unpack/kwarg syntax to fix #72 2017-07-04 01:22:47 -04:00
Hamilton Kibbe
8def119980 Merge pull request #71 from tomacorp/layer_bounds_arg
Added bounds argument to render_layer()
2017-06-12 08:02:59 -04:00
Hamilton Kibbe
872c2db250 Merge pull request #69 from jmargeta/sweep_angle_tolerance
Add tolerance to center finding
2017-06-12 07:59:39 -04:00
Hamilton Kibbe
b85021d9b8 Merge pull request #68 from jmargeta/cairo_python_3_fix
Fix Cairo backend for svg saving and Python 3
2017-06-12 07:58:59 -04:00
Hamilton Kibbe
f7a719e6f7 Fix error when unpacking colors in cairo backend 2017-06-12 07:58:06 -04:00
Tom Anderson
e0b45108d2 Added bounds argument to render_layer() 2017-05-24 09:42:23 -07:00
Hamilton Kibbe
a5aa8bc9ba Merge pull request #70 from bryant1410/master
Fix broken headings in Markdown files
2017-04-20 09:50:20 -04:00
Santiago Castro
6a77023bb0 Fix broken Markdown headings 2017-04-16 16:46:15 -03:00
Jan Margeta
dd1676ad8a Add tolerance to center finding
In some cases, the computation of valid sweep angle hit numerical limits
and no centers are found.

This commit adds a small amount of tolerance.
2017-04-15 15:40:55 +02:00
Jan Margeta
7873999926 Fix Cairo backend for svg saving and Python 3 2017-04-15 15:29:58 +02:00
Jan Margeta
5b67c82abc Replace sys.maxint with sys.maxsize
In Python 3, sys.maxint was removed, however its current use
can be safely substituted with sys.maxsize (also in Python 2)

See also: https://docs.python.org/3.1/whatsnew/3.0.html#integers
2017-04-15 11:13:31 +02:00
Hamilton Kibbe
dd0abbf307 Merge pull request #65 from curtacircuitos/auto_scale_renders
Add max_width and max_height arguments to cairo context render_layers method
2017-02-24 08:38:13 -05:00
Paulo Henrique Silva
b5e7b021ee setup.py: sync with requirements.txt 2016-12-16 22:19:43 -02:00
Hamilton Kibbe
19a8fb0048 Add max_width and max_height arguments to 2016-12-13 20:22:54 -05:00
Hamilton Kibbe
7c4ec8a768 Clip context to axis- and pixel- aligned bounds before rendering primitives. Significantly speeds up render 2016-12-13 00:01:05 -05:00
Hamilton Kibbe
1c0005437e Merge pull request #62 from ju5t/develop
(#61) Add regex option to discover layer classes
2016-12-03 18:27:36 -05:00
ju5t
d6a815225b Merge branch 'master' into develop 2016-12-01 21:15:33 +01:00
ju5t
ffeaf788f0 (#61) Add regex option to discover layer classes 2016-12-01 21:08:17 +01:00
Hamilton Kibbe
467bcdbc2a Update Installation Instructions 2016-11-29 23:31:53 -05:00
Paulo Henrique Silva
c15033a783 Merge pull request #59 from curtacircuitos/render_updates
Render updates
2016-11-18 13:26:35 -02:00
Hamilton Kibbe
c1b2903521 Try using wheel for scipy 2016-11-18 08:26:06 -05:00
Hamilton Kibbe
845737ebd8 Temporarily disable python3.3 until i can sort out the issue with py3.3 and scipy on travis CI 2016-11-18 08:23:02 -05:00
Hamilton Kibbe
e07ccc805f Fix drill tests 2016-11-18 08:14:26 -05:00
Hamilton Kibbe
389c273a87 Clean up rs274x output tests 2016-11-18 08:12:55 -05:00
Hamilton Kibbe
33e8494318 Add more tests for primitives 2016-11-18 08:11:56 -05:00
Hamilton Kibbe
0ae5c48a65 Fix rs274x output bugs 2016-11-18 08:10:32 -05:00
Hamilton Kibbe
5696fc7064 Fix a bunch of bugs in rendering that showed up when rendering the gerbv test suite 2016-11-18 08:09:03 -05:00
Hamilton Kibbe
a7f1f6ef0f Finish adding square hole support, fix some primitive calculations, etc. 2016-11-18 08:05:57 -05:00
Hamilton Kibbe
6b672e98ff Add support for IF (Include File) rs274x command 2016-11-18 08:02:22 -05:00
Hamilton Kibbe
c70ece73ea Add support for square holes in basic primitives 2016-11-18 07:56:51 -05:00