Rename svg functions to reflect their gds counterparts

Backwards incompatible!
This commit is contained in:
Jan Petykiewicz 2019-05-17 01:16:18 -07:00
parent 503a77925e
commit 67c9b510cb

View File

@ -12,7 +12,7 @@ from .. import Pattern
__author__ = 'Jan Petykiewicz'
def write(pattern: Pattern,
def writefile(pattern: Pattern,
filename: str,
custom_attributes: bool=False):
"""
@ -83,7 +83,7 @@ def write(pattern: Pattern,
svg.save()
def write_inverted(pattern: Pattern, filename: str):
def writefile_inverted(pattern: Pattern, filename: str):
"""
Write an inverted Pattern to an SVG file, by first calling .polygonize() and
.flatten() on it to change the shapes into polygons, then drawing a bounding