Skip to content

Commit

Permalink
Merge pull request #182 from gdsfactory/sourcery/118
Browse files Browse the repository at this point in the history
Fix DFT issue (Sourcery refactored)
  • Loading branch information
joamatab authored Feb 8, 2023
2 parents fab8ce1 + 4d21956 commit b43a9f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 3 additions & 6 deletions ubcpdk/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,12 @@ def dbr(
@gf.cell
def dbr_cavity(**kwargs) -> gf.Component:
d = dbr(**kwargs, decorator=add_pins_bbox_siepic)
c = gf.components.cavity(component=d, coupler=coupler)
return c
return gf.components.cavity(component=d, coupler=coupler)


def dbr_cavity_te(component="dbr_cavity", **kwargs) -> gf.Component:
component = gf.get_component(component, **kwargs)
c = add_fiber_array(component=component)
return c
return add_fiber_array(component=component)


bend = gf.components.bend_euler
Expand Down Expand Up @@ -758,8 +756,7 @@ def add_fiber_array_pads_rf(
text = f"elec_{c0.name}_G"
add_label = gf.partial(add_label_electrical, text=text)
c1 = add_pads_rf(component=c0, decorator=add_label)
c2 = add_fiber_array(component=c1, **kwargs)
return c2
return add_fiber_array(component=c1, **kwargs)


if __name__ == "__main__":
Expand Down
3 changes: 1 addition & 2 deletions ubcpdk/import_gds.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ def import_gds(gdspath, **kwargs):

def import_gc(gdspath, **kwargs):
c = import_gds(gdspath, **kwargs)
c2 = gf.functions.mirror(component=c)
return c2
return gf.functions.mirror(component=c)


if __name__ == "__main__":
Expand Down

0 comments on commit b43a9f5

Please sign in to comment.