From 5507831094c9eeecc58864f17ae193b55006a69e Mon Sep 17 00:00:00 2001 From: Hui Zhou Date: Wed, 25 Oct 2023 19:23:08 +0200 Subject: [PATCH] fix (#3797) Co-authored-by: ring630 <@gmail.com> --- _unittest/test_00_EDB.py | 2 ++ pyaedt/edb_core/edb_data/terminals.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/_unittest/test_00_EDB.py b/_unittest/test_00_EDB.py index 716acbb0ca1..c47d1346d6b 100644 --- a/_unittest/test_00_EDB.py +++ b/_unittest/test_00_EDB.py @@ -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): diff --git a/pyaedt/edb_core/edb_data/terminals.py b/pyaedt/edb_core/edb_data/terminals.py index 30e551e241e..2a996f08df1 100644 --- a/pyaedt/edb_core/edb_data/terminals.py +++ b/pyaedt/edb_core/edb_data/terminals.py @@ -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."""