Skip to content

Commit

Permalink
fix (#3797)
Browse files Browse the repository at this point in the history
Co-authored-by: ring630 <@gmail.com>
  • Loading branch information
hui-zhou-a authored Oct 25, 2023
1 parent 8af5e38 commit 5507831
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _unittest/test_00_EDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,8 @@ def test_107_create_edge_ports(self):
gap_port.name = "gap_port"
assert gap_port.name == "gap_port"
assert isinstance(gap_port.renormalize_z0, tuple)
gap_port.is_circuit_port = True
assert gap_port.is_circuit_port
edb.close()

def test_108_create_dc_simulation(self):
Expand Down
4 changes: 4 additions & 0 deletions pyaedt/edb_core/edb_data/terminals.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ def is_circuit_port(self):
"""Whether it is a circuit port."""
return self._edb_object.GetIsCircuitPort()

@is_circuit_port.setter
def is_circuit_port(self, value):
self._edb_object.SetIsCircuitPort(value)

@property
def _port_post_processing_prop(self):
"""Get port post processing properties."""
Expand Down

0 comments on commit 5507831

Please sign in to comment.