Skip to content

Commit

Permalink
Merge pull request #2547 from gdsfactory/fix_typos
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
joamatab authored Feb 19, 2024
2 parents 0347f31 + 1441656 commit cedc158
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions gdsfactory/routing/add_electrical_pads_top.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def add_electrical_pads_top(
select_ports: Callable = select_ports_electrical,
port_names: Strs | None = None,
layer: LayerSpec = "MTOP",
post_proces: Callable | None = None,
post_process: Callable | None = None,
**kwargs,
) -> Component:
"""Returns new component with electrical ports connected to top pad array.
Expand All @@ -35,7 +35,7 @@ def add_electrical_pads_top(
select_ports: function to select electrical ports.
port_names: optional port names. Overrides select_ports.
layer: for the routes.
post_proces: function to post process the component.
post_process: function to post process the component.
Keyword Args:
ports: Dict[str, Port] a port dict {port name: port}.
Expand Down Expand Up @@ -98,8 +98,8 @@ def add_electrical_pads_top(
c.copy_child_info(component)
c.auto_rename_ports(prefix_electrical=f"elec-{component.name}-")

if post_proces:
post_proces(c)
if post_process:
post_process(c)
return c


Expand Down
6 changes: 3 additions & 3 deletions gdsfactory/routing/add_electrical_pads_top_dc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def add_electrical_pads_top_dc(
select_ports: Callable = select_ports_electrical,
get_bundle_function: Callable = get_bundle_electrical,
port_names: Strs | None = None,
post_proces: Callable | None = None,
post_process: Callable | None = None,
**kwargs,
) -> Component:
"""Returns new component with electrical ports connected to top pad array.
Expand Down Expand Up @@ -88,8 +88,8 @@ def add_electrical_pads_top_dc(
for i, port_pad in enumerate(ports_pads):
c.add_port(port=port_pad, name=f"elec-{component.name}-{i}")
c.copy_child_info(component)
if post_proces:
post_proces(c)
if post_process:
post_process(c)
return c


Expand Down
8 changes: 4 additions & 4 deletions gdsfactory/routing/add_fiber_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def add_fiber_array(
text: ComponentSpec | None = None,
id_placement: Literal[AnchorSubset] = "center",
id_placement_offset: Floats = (0, 0),
post_proces: Callable | None = None,
post_process: Callable | None = None,
**kwargs,
) -> Component:
"""Returns component with south routes and grating_couplers.
Expand All @@ -64,7 +64,7 @@ def add_fiber_array(
"l" = left of the left-most gc
"s" = center and below the gc in y
id_placement_offset: offset for the id placement.
post_proces: function to post process the component.
post_process: function to post process the component.
Keyword Args:
bend: bend spec.
Expand Down Expand Up @@ -244,8 +244,8 @@ def add_fiber_array(
np.min(ymins) - 20 + id_placement_offset[1],
)

if post_proces:
post_proces(component_new)
if post_process:
post_process(component_new)
return component_new


Expand Down
8 changes: 4 additions & 4 deletions gdsfactory/routing/add_fiber_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def add_fiber_single(
get_input_label_text_function: Callable | None = get_input_label_text_dash,
select_ports: Callable = select_ports_optical,
cross_section: CrossSectionSpec = "xs_sc",
post_proces: Callable | None = None,
post_process: Callable | None = None,
**kwargs,
) -> Component:
r"""Returns component with grating couplers and labels on each port.
Expand Down Expand Up @@ -71,7 +71,7 @@ def add_fiber_single(
get_input_labels_function: function to get input labels for grating couplers.
select_ports: function to select ports.
cross_section: cross_section spec.
post_proces: function to post process the component.
post_process: function to post process the component.
Keyword Args:
max_y0_optical: in um.
Expand Down Expand Up @@ -275,8 +275,8 @@ def add_fiber_single(
)

c.copy_child_info(component_original)
if post_proces:
post_proces(c)
if post_process:
post_process(c)
return c


Expand Down
8 changes: 4 additions & 4 deletions gdsfactory/routing/add_pads.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def add_pads_bot(
pad_spacing: float | str = "pad_spacing",
optical_routing_type: int | None = 1,
with_loopback: bool = False,
post_proces: Callable | None = None,
post_process: Callable | None = None,
**kwargs,
) -> Component:
"""Returns new component with ports connected bottom pads.
Expand All @@ -55,7 +55,7 @@ def add_pads_bot(
pad_spacing: in um. Defaults to pad_spacing constant from the PDK.
optical_routing_type: None: auto, 0: no extension, 1: standard, 2: check.
with_loopback: True, adds loopback structures.
post_proces: function to post process the component.
post_process: function to post process the component.
Keyword Args:
straight: straight spec.
Expand Down Expand Up @@ -172,8 +172,8 @@ def add_pads_bot(
component_new.add_port(f"pad_{i+1}", port=pad[pad_port_name])

component_new.copy_child_info(component)
if post_proces:
post_proces(component_new)
if post_process:
post_process(component_new)
return component_new


Expand Down
2 changes: 1 addition & 1 deletion test-data-regression/test_import_json_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cell_settings:
loopback_xspacing: 50.0
min_input_to_output_spacing: 200.0
optical_routing_type: 2
post_proces: null
post_process: null
route_filter:
function: get_route_from_waypoints
select_ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ settings:
pad_array:
function: pad_array
port_names: null
post_proces: null
post_process: null
select_ports:
function: select_ports
module: gdsfactory.port
Expand Down
2 changes: 1 addition & 1 deletion test-data-regression/test_settings_add_fiber_single_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ settings:
loopback_xspacing: 50.0
min_input_to_output_spacing: 200.0
optical_routing_type: 2
post_proces: null
post_process: null
route_filter:
function: get_route_from_waypoints
select_ports:
Expand Down
2 changes: 1 addition & 1 deletion test-data-regression/test_settings_add_pads_bot_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ settings:
pad_port_name: e1
pad_spacing: pad_spacing
port_names: null
post_proces: null
post_process: null
select_ports:
function: select_ports
module: gdsfactory.port
Expand Down

0 comments on commit cedc158

Please sign in to comment.