From 6f876edd09d9b81649691e529f85653f14b8fd1c Mon Sep 17 00:00:00 2001 From: Hamilton Kibbe Date: Tue, 22 Dec 2015 02:45:48 -0500 Subject: Add PCB interface this incorporates some of @chintal's layers.py changes PCB.from_directory() simplifies loading of multiple gerbers the PCB() class should be pretty helpful going forward... the context classes could use some cleaning up, although I'd like to wait until the freecad stuff gets merged, that way we can try to refactor the context base to support more use cases --- gerber/common.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gerber/common.py') diff --git a/gerber/common.py b/gerber/common.py index f8979dc..04b6423 100644 --- a/gerber/common.py +++ b/gerber/common.py @@ -17,6 +17,7 @@ from . import rs274x from . import excellon +from . import ipc356 from .exceptions import ParseError from .utils import detect_file_format @@ -43,6 +44,8 @@ def read(filename): return rs274x.read(filename) elif fmt == 'excellon': return excellon.read(filename) + elif fmt == 'ipc_d_356': + return ipc356.read(filename) else: raise ParseError('Unable to detect file format') -- cgit