summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/panelize/common.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-11-06 22:00:14 +0100
committerjaseg <git@jaseg.de>2021-11-06 22:00:14 +0100
commit5aa184757e4fb5c2fc141c41aed2fccc0c96ce7e (patch)
treef2564f7602d6b044880617a1505729d612d83219 /gerbonara/gerber/panelize/common.py
parent3538398e84b6899a61cfd1e3010c24e1f3098c8f (diff)
downloadgerbonara-5aa184757e4fb5c2fc141c41aed2fccc0c96ce7e.tar.gz
gerbonara-5aa184757e4fb5c2fc141c41aed2fccc0c96ce7e.tar.bz2
gerbonara-5aa184757e4fb5c2fc141c41aed2fccc0c96ce7e.zip
Make unit test not crash on import
Diffstat (limited to 'gerbonara/gerber/panelize/common.py')
-rw-r--r--gerbonara/gerber/panelize/common.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/gerbonara/gerber/panelize/common.py b/gerbonara/gerber/panelize/common.py
deleted file mode 100644
index aa3ba0e..0000000
--- a/gerbonara/gerber/panelize/common.py
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-# Copyright 2019 Hiroshi Murayama <opiopan@gmail.com>
-
-import os
-from ..common import loads as loads_org
-from ..exceptions import ParseError
-from ..utils import detect_file_format
-from .. import rs274x
-from .. import ipc356
-
-from . import excellon
-
-def read(filename, format=None):
- with open(filename, 'r') as f:
- data = f.read()
- return loads(data, filename, format=format)
-
-
-def loads(data, filename=None, format=None):
- # if os.path.splitext(filename if filename else '')[1].lower() == '.dxf':
- # return dxf.loads(data, filename)
-
- fmt = detect_file_format(data)
- if fmt == 'excellon':
- return excellon.loads(data, filename=filename, format=format)
- elif fmt == 'ipc_d_356':
- return ipc356.loads(data, filename=filename)
- else:
- raise ParseError('Unable to detect file format')
-
-
-# def rectangle(width, height, left=0, bottom=0, units='metric', draw_mode=None, filename=None):
-# return dxf.DxfFile.rectangle(
-# width, height, left, bottom, units, draw_mode, filename)