Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow for linear interpolation of offsets in phidl.path.transition #210

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

MechanicalPenguin225
Copy link

This PR concerns issue #208 where some users expect linear interpolation of the offset of CrossSection segments when setting width_type="linear" in the phidl.path.transition function. Current behavior is that only width inteprolation is affected by the argument but offset interpolation remains sinusoidal.

In order to keep behavior identical for old code that may use this intentionally, this PR adds another kwarg offset_type to the function that behaves just like width_type but setting interpolation for offsets instead, with the default value remaining "sine" for backwards comaptibility. This way, any combination of interpolation functions can be used for width and offset separately.

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

Successfully merging this pull request may close these issues.

2 participants