No description
PCBmodE uses a standard but probably undefined behaviour issue on Gerber where it defines circle apertures with a single modifier but leaves a trilling 'X' after it. 'X' is modifiers separator but when there is only one modifier the behaviour is undefined. For parsing we are just ignoring blank modifiers. Test updated to catch this case. |
||
|---|---|---|
| doc | ||
| examples | ||
| gerber | ||
| .coveragerc | ||
| .gitignore | ||
| .travis.yml | ||
| doc-requirements.txt | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| requirements.txt | ||
| setup.py | ||
| test-requirements.txt | ||
pcb-tools
Tools to handle Gerber and Excellon files in Python.
Useage Example:
import gerber
from gerber.render import GerberSvgContext
# Read gerber and Excellon files
top_copper = gerber.read('example.GTL')
nc_drill = gerber.read('example.txt')
# Rendering context
ctx = GerberSvgContext()
# Create SVG image
top_copper.render(ctx)
nc_drill.render(ctx, 'composite.svg')
Rendering Examples:
###Top Composite rendering
Source code for this example can be found here.
