summaryrefslogtreecommitdiff
path: root/gerber/__init__.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2014-10-08 09:27:52 -0400
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2014-10-08 09:27:52 -0400
commit1653ae5cbe88757e453bccf499dc1b8ccb278e58 (patch)
treeb80b610fb0c5c52c91edbe753947daeb0e39db20 /gerber/__init__.py
parent100ab899ed7a1a49c3401b87b7d6b0f53a043dbc (diff)
downloadgerbonara-1653ae5cbe88757e453bccf499dc1b8ccb278e58.tar.gz
gerbonara-1653ae5cbe88757e453bccf499dc1b8ccb278e58.tar.bz2
gerbonara-1653ae5cbe88757e453bccf499dc1b8ccb278e58.zip
Update readme and example
Diffstat (limited to 'gerber/__init__.py')
-rw-r--r--gerber/__init__.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/gerber/__init__.py b/gerber/__init__.py
index 3197335..4637713 100644
--- a/gerber/__init__.py
+++ b/gerber/__init__.py
@@ -21,27 +21,3 @@ gerber module
"""
-def read(filename):
- """ Read a gerber or excellon file and return a representative object.
-
- Parameters
- ----------
- filename : string
- Filename of the file to read.
-
- Returns
- -------
- file : CncFile subclass
- CncFile object representing the file, either GerberFile or
- ExcellonFile. Returns None if file is not an Excellon or Gerber file.
- """
- import gerber
- import excellon
- from utils import detect_file_format
- fmt = detect_file_format(filename)
- if fmt == 'rs274x':
- return gerber.read(filename)
- elif fmt == 'excellon':
- return excellon.read(filename)
- else:
- return None