redo library class naming
This commit is contained in:
parent
a07446808a
commit
f0a71bfb8b
13 changed files with 78 additions and 78 deletions
|
|
@ -7,7 +7,7 @@ from skimage.measure import find_contours
|
|||
from matplotlib import pyplot
|
||||
import numpy
|
||||
|
||||
from masque import Pattern, Library, Polygon
|
||||
from masque import Pattern, Polygon
|
||||
from masque.file.gdsii import writefile
|
||||
|
||||
#
|
||||
|
|
|
|||
|
|
@ -5,14 +5,14 @@ import numpy
|
|||
from numpy import pi
|
||||
|
||||
import masque
|
||||
from masque import Pattern, Ref, Arc, WrapLibrary
|
||||
from masque import Pattern, Ref, Arc, Library
|
||||
from masque.repetition import Grid
|
||||
from masque.file import gdsii, dxf, oasis
|
||||
|
||||
|
||||
|
||||
def main():
|
||||
lib = WrapLibrary()
|
||||
lib = Library()
|
||||
|
||||
cell_name = 'ellip_grating'
|
||||
pat = masque.Pattern()
|
||||
|
|
@ -115,7 +115,7 @@ def main():
|
|||
|
||||
print(f'Read back and rewrite to {dxf2}')
|
||||
dxf_lib, _info = dxf.readfile(dxf1)
|
||||
print(WrapLibrary(dxf_lib))
|
||||
print(Library(dxf_lib))
|
||||
dxf.writefile(dxf_lib, 'Model', dxf2)
|
||||
|
||||
layer_map = {'base': (0,0), 'mylabel': (1,2)}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from numpy import pi
|
|||
|
||||
from masque import (
|
||||
layer_t, Pattern, Ref, Label, Builder, Port, Polygon,
|
||||
WrapLibrary, Library,
|
||||
Library, ILibraryView,
|
||||
)
|
||||
from masque.utils import ports2data
|
||||
from masque.file.gdsii import writefile, check_valid_names
|
||||
|
|
@ -247,7 +247,7 @@ def main(interactive: bool = True) -> None:
|
|||
devices['l3cav'] = perturbed_l3(lattice_constant=a, hole='smile', hole_lib=shape_lib, xy_size=(4, 10)) # uses smile :)
|
||||
|
||||
# Turn our dict of devices into a Library -- useful for getting abstracts
|
||||
lib = WrapLibrary(devices)
|
||||
lib = Library(devices)
|
||||
abv = lib.abstract_view() # lets us use abv[cell] instead of lib.abstract(cell)
|
||||
|
||||
#
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ from pprint import pformat
|
|||
import numpy
|
||||
from numpy import pi
|
||||
|
||||
from masque import Pattern, Builder, WrapLibrary, LazyLibrary, Library
|
||||
from masque import Pattern, Builder, LazyLibrary
|
||||
from masque.file.gdsii import writefile, load_libraryfile
|
||||
|
||||
import pcgen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue