Skip to content

Commit

Permalink
give better name to default shape to param dict
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 authored Nov 28, 2023
1 parent f5c6953 commit 1d16a20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/probeinterface/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .utils import combine_probes


_default_dict = {"circle": "radius", "square": "width", "rect": "height"}
_default_shape_to_params = {"circle": "radius", "square": "width", "rect": "height"}


def generate_dummy_probe(elec_shapes: "circle" | "square" | "rect" = "circle") -> Probe:
Expand Down Expand Up @@ -136,7 +136,7 @@ def generate_multi_columns_probe(
"""

assert (
_default_dict[contact_shapes] in contact_shape_params.keys()
_default_shape_to_params[contact_shapes] in contact_shape_params.keys()
), "contact_shapes and contact_shape_params must be coordinated see docstring"

if isinstance(num_contact_per_column, int):
Expand Down

0 comments on commit 1d16a20

Please sign in to comment.