Skip to content

Commit

Permalink
Decrease max_points on s-bend
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekK44 committed Jul 21, 2019
1 parent 39cb0c2 commit 8a3fdb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions picwriter/components/sbend.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __build_cell(self):

# Add waveguide s-bend
wg = gdspy.Path(self.wgt.wg_width, (0,0))
wg.parametric(self.__sine_function, tolerance=self.wgt.grid/2.0, max_points=1000, **self.wg_spec)
wg.parametric(self.__sine_function, tolerance=self.wgt.grid/2.0, max_points=199, **self.wg_spec)
self.add(wg)

# Add cladding s-bend
Expand All @@ -69,7 +69,7 @@ def __build_cell(self):
cur_spec = {'layer': self.wgt.waveguide_stack[i+1][1][0], 'datatype': self.wgt.waveguide_stack[i+1][1][1]}

clad = gdspy.Path(cur_width, (0,0))
clad.parametric(self.__sine_function, tolerance=self.wgt.grid/2.0, max_points=1000, **cur_spec)
clad.parametric(self.__sine_function, tolerance=self.wgt.grid/2.0, max_points=199, **cur_spec)
self.add(clad)

def __build_ports(self):
Expand Down

0 comments on commit 8a3fdb3

Please sign in to comment.