Skip to content

Commit

Permalink
Fix bug #5, waveguide_to_path transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed Nov 17, 2015
1 parent 11118d6 commit 67bb725
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ for o in object_selection:
# convert wg_path (in microns) to database numbers
wg_path = points_to_path(numpy.array(path_to_Dpoints(path_obj))/dbu, wg_width)
# get waveguide transformation
# xxxxx
print ( wg_path )
new_wg = cell.shapes(SiLayerN).insert(wg_path)
wg_path_trans = wg_path.transformed(oinst.trans)

print ( wg_path_trans )
new_wg = cell.shapes(SiLayerN).insert(wg_path_trans)

# It would be nice to leave the newly created waveguide selected, to make it obvious to the user.
# # http://www.klayout.de/doc/code/class_ObjectInstPath.html#method9
Expand Down

0 comments on commit 67bb725

Please sign in to comment.