summaryrefslogtreecommitdiff
path: root/gerber/__init__.py
diff options
context:
space:
mode:
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