summaryrefslogtreecommitdiff
path: root/gerber/__init__.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2014-09-30 23:42:02 -0400
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2014-09-30 23:42:02 -0400
commitf8449ad2b60b8a715d0867325e257a8297193b49 (patch)
treec7cf4bed6de5c6200f9aaf937167ee71d1c9ce58 /gerber/__init__.py
parent88fb7f23110d2270c5c7f8a7b90cae32295da78e (diff)
downloadgerbonara-f8449ad2b60b8a715d0867325e257a8297193b49.tar.gz
gerbonara-f8449ad2b60b8a715d0867325e257a8297193b49.tar.bz2
gerbonara-f8449ad2b60b8a715d0867325e257a8297193b49.zip
tests update
Diffstat (limited to 'gerber/__init__.py')
-rw-r--r--gerber/__init__.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/gerber/__init__.py b/gerber/__init__.py
index 089d7b6..e31bd6f 100644
--- a/gerber/__init__.py
+++ b/gerber/__init__.py
@@ -18,6 +18,17 @@
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