gdsfactory.path.transition

Contents

gdsfactory.path.transition#

gdsfactory.path.transition(cross_section1: CrossSectionSpec, cross_section2: CrossSectionSpec, width_type: Literal['sine', 'linear', 'parabolic'] | Callable = 'sine') Transition[source]#

Returns a smoothly-transitioning between two CrossSections.

Only cross-sectional elements that have the name (as in X.add(…, name = ‘wg’) ) parameter specified in both input CrossSections will be created. Port names will be cloned from the input CrossSections in reverse.

Parameters:
  • cross_section1 – First CrossSection.

  • cross_section2 – Second CrossSection.

  • width_type – sine or linear. type of width transition used if any widths are different between the two input CrossSections.