Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWG routing issue #4

Closed
DerekK44 opened this issue Jan 6, 2019 · 1 comment
Closed

SWG routing issue #4

DerekK44 opened this issue Jan 6, 2019 · 1 comment

Comments

@DerekK44
Copy link
Owner

DerekK44 commented Jan 6, 2019

@peterxsu : Issue with block generation in SWG waveguides. See example code below for the error:

top = gdspy.Cell("top")
wgt= WaveguideTemplate(wg_type='swg', wg_width=1.0, bend_radius=25, duty_cycle=0.50, period=1.0, resist='+', fab="ETCH")
wg=Waveguide([(0, 20.0), (90.0, 20.0), (90.0, 70.0), (200, 70.0)], wgt)
tk.add(top, wg)
gdspy.LayoutViewer()

Seems like a rounding error when determining the number of blocks.
swg_error

@peterxsu
Copy link
Contributor

peterxsu commented Jan 7, 2019

I think I fixed it. It was an issue with the remaining period between consecutive sections. See new pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants