Skip to content

Commit

Permalink
FIX: python 3.8 compatibility (#679)
Browse files Browse the repository at this point in the history
* hfsspi SimsetupInfo bug fixed

* temp

* fixing uncompatible python 3.8 syntax
  • Loading branch information
svandenb-dev committed Jul 18, 2024
1 parent a3471fe commit 48b53c0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/pyedb/dotnet/edb_core/modeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1424,9 +1424,9 @@ def create_bondwire(
def create_pin_group(
self,
name: str,
pins_by_id: list[int] = None,
pins_by_aedt_name: list[str] = None,
pins_by_name: list[str] = None,
pins_by_id=None,
pins_by_aedt_name=None,
pins_by_name=None,
):
"""Create a PinGroup.
Expand All @@ -1442,6 +1442,8 @@ def create_pin_group(
"""
pins = {}
if pins_by_id:
if isinstance(pins_by_id, int):
pins_by_id = [pins_by_id]
for p in pins_by_id:
edb_pin = self._pedb.layout.find_object_by_id(p)
if edb_pin and not p in pins:
Expand All @@ -1451,6 +1453,10 @@ def create_pin_group(
if not pins_by_name:
pins_by_name = []
if pins_by_aedt_name or pins_by_name:
if isinstance(pins_by_aedt_name, str):
pins_by_aedt_name = [pins_by_aedt_name]
if isinstance(pins_by_name, str):
pins_by_name = [pins_by_name]
p_inst = self._pedb.layout.padstack_instances
_pins = {
pin.id: pin._edb_object
Expand Down

0 comments on commit 48b53c0

Please sign in to comment.