diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2014-10-11 13:12:21 -0400 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2014-10-11 13:12:21 -0400 |
commit | 62c689be172a7a06d76fd4b69c3443f3ec053765 (patch) | |
tree | 8297ff4e0a4fd3e37d7511280d20c2d01a79ac7f /gerber/gerber.py | |
parent | ae3bbff8b0849e0b49dc139396d7f8c57334a7b8 (diff) | |
download | gerbonara-62c689be172a7a06d76fd4b69c3443f3ec053765.tar.gz gerbonara-62c689be172a7a06d76fd4b69c3443f3ec053765.tar.bz2 gerbonara-62c689be172a7a06d76fd4b69c3443f3ec053765.zip |
Doc update
Diffstat (limited to 'gerber/gerber.py')
-rw-r--r-- | gerber/gerber.py | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/gerber/gerber.py b/gerber/gerber.py index 215b970..335b443 100644 --- a/gerber/gerber.py +++ b/gerber/gerber.py @@ -15,12 +15,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -""" -Gerber File module -================== -**Gerber File module** - -This module provides an RS-274-X class and parser +""" This module provides an RS-274-X class and parser. """ @@ -34,6 +29,16 @@ from .cam import CamFile, FileSettings def read(filename): """ Read data from filename and return a GerberFile + + Parameters + ---------- + filename : string + Filename of file to parse + + Returns + ------- + file : :class:`gerber.gerber.GerberFile` + A GerberFile created from the specified file. """ return GerberParser().parse(filename) @@ -113,6 +118,14 @@ class GerberFile(CamFile): def render(self, ctx, filename=None): """ Generate image of layer. + + Parameters + ---------- + ctx : :class:`GerberContext` + GerberContext subclass used for rendering the image + + filename : string <optional> + If provided, the rendered image will be saved to `filename` """ ctx.set_bounds(self.bounds) for statement in self.statements: |