Skip to content

Commit

Permalink
pn offset argument in pn cross_setion
Browse files Browse the repository at this point in the history
  • Loading branch information
simbilod committed Dec 25, 2022
1 parent 6cca568 commit d80d9b5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gdsfactory/cross_section.py
Expand Up @@ -666,13 +666,13 @@ def pn(
width_low_doping = width_doping - gap_low_doping / 2

n = Section(
width=width_low_doping,
offset=+base_offset_low_doping,
width=width_low_doping + offset_low_doping,
offset=+base_offset_low_doping - offset_low_doping / 2,
layer=layer_n,
)
p = Section(
width=width_low_doping,
offset=-base_offset_low_doping,
width=width_low_doping - offset_low_doping,
offset=-base_offset_low_doping - offset_low_doping / 2,
layer=layer_p,
)
sections.append(n)
Expand Down Expand Up @@ -1410,7 +1410,7 @@ def test_copy():
import gdsfactory as gf

xs = gf.cross_section.pn(
width=0.5, gap_low_doping=0.0, width_doping=2.0, offset_low_doping=0.2
width=0.5, gap_low_doping=0.05, width_doping=2.0, offset_low_doping=0.0
)
p = gf.path.straight()
c = p.extrude(xs)
Expand Down

0 comments on commit d80d9b5

Please sign in to comment.