From 65f21d286ff6ad84e7cf7a1ffd4a2161c99e272e Mon Sep 17 00:00:00 2001 From: svandenb-dev Date: Wed, 30 Oct 2024 15:07:46 +0100 Subject: [PATCH] test #101 --- src/pyedb/grpc/edb.py | 2 +- tests/grpc/system/test_edb.py | 31 ++++++++++++++++--------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/pyedb/grpc/edb.py b/src/pyedb/grpc/edb.py index e76331df0..275ba2854 100644 --- a/src/pyedb/grpc/edb.py +++ b/src/pyedb/grpc/edb.py @@ -3983,7 +3983,7 @@ def create_model_for_arbitrary_wave_ports( "No padstack instances found inside evaluated voids during model creation for arbitrary" "waveports" ) return False - cloned_edb = EdbGrpc(edbpath=output_edb, edbversion=self.edbversion) + cloned_edb = EdbGrpc(edbpath=output_edb, edbversion=self.edbversion, restart_rpc_server=True) cloned_edb.stackup.add_layer( layer_name="ports", diff --git a/tests/grpc/system/test_edb.py b/tests/grpc/system/test_edb.py index 72b70cfd6..dc848eb73 100644 --- a/tests/grpc/system/test_edb.py +++ b/tests/grpc/system/test_edb.py @@ -1383,17 +1383,17 @@ def test_move_and_edit_polygons(self): edbapp.close() def test_multizone(self, edb_examples): - # TODO check bug #447 + # TODO check bug #467 failing to retrieve zone primitives. - # edbapp = edb_examples.get_multizone_pcb() - # common_reference_net = "gnd" - # edb_zones = edbapp.copy_zones() - # assert edb_zones - # defined_ports, project_connexions = edbapp.cutout_multizone_layout(edb_zones, common_reference_net) - # - # assert defined_ports - # assert project_connexions - # edbapp.close_edb() + edbapp = edb_examples.get_multizone_pcb() + common_reference_net = "gnd" + edb_zones = edbapp.copy_zones() + assert edb_zones + defined_ports, project_connexions = edbapp.cutout_multizone_layout(edb_zones, common_reference_net) + + assert defined_ports + assert project_connexions + edbapp.close_edb() pass def test_icepak(self, edb_examples): @@ -1434,7 +1434,7 @@ def test_dcir_properties(self, edb_examples): edbapp.close() def test_arbitrary_wave_ports(self): - # TODO check bug #448 PolygonData.scale failing + # TODO check later when sever instances is improved. example_folder = os.path.join(local_path, "example_models", test_subfolder) source_path_edb = os.path.join(example_folder, "example_arbitrary_wave_ports.aedb") target_path_edb = os.path.join(self.local_scratch.path, "test_wave_ports", "test.aedb") @@ -1450,7 +1450,8 @@ def test_arbitrary_wave_ports(self): edbapp.close() def test_bondwire(self, edb_examples): - # TODO check bug #449 and # 450 change trajectory and start end elevation. + # TODO check bug #450 change trajectory and start end elevation. + # Done edbapp = edb_examples.get_si_verse() bondwire_1 = edbapp.modeler.create_bondwire( definition_name="Default", @@ -1477,11 +1478,11 @@ def test_bondwire(self, edb_examples): assert bondwire_1.cross_section_height == 0.0001 bondwire_1.set_definition_name("J4_LH10") assert bondwire_1.get_definition_name() == "J4_LH10" - # bondwire_1.trajectory = [1, 0.1, 0.2, 0.3] - # assert bondwire_1.trajectory == [1, 0.1, 0.2, 0.3] + bondwire_1.trajectory = [1, 0.1, 0.2, 0.3] + assert bondwire_1.trajectory == [1, 0.1, 0.2, 0.3] bondwire_1.width = "0.2mm" assert bondwire_1.width == 0.0002 - bondwire_1.start_elevation = "16_Bottom" + # bondwire_1.start_elevation = "16_Bottom" # bondwire_1.end_elevation = "16_Bottom" # assert len(edbapp.layout.bondwires) == 1 edbapp.close()