Skip to content

Commit

Permalink
test #83 done
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenb-dev committed Oct 29, 2024
1 parent d45c575 commit df81705
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions tests/grpc/system/test_edb_padstacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,22 +376,20 @@ def test_padstaks_plot_on_matplotlib(self):
assert os.path.exists(local_png4)
edb_plot.close()

def test_update_padstacks_after_layer_name_changed(self):
source_path = os.path.join(local_path, "example_models", test_subfolder, "ANSYS-HSD_V1.aedb")
target_path = os.path.join(self.local_scratch.path, "test_padstack_def_update", "ANSYS-HSD_V1.aedb")
self.local_scratch.copyfolder(source_path, target_path)

edbapp = Edb(target_path, edbversion=desktop_version)
signal_layer_list = [layer for layer in list(edbapp.stackup.layers.values()) if layer.type == "signal"]
def test_update_padstacks_after_layer_name_changed(self, edb_examples):
# Done
edbapp = edb_examples.get_si_verse()
signal_layer_list = list(edbapp.stackup.signal_layers.values())
old_layers = []
for n_layer, layer in enumerate(signal_layer_list):
new_name = f"new_signal_name_{n_layer}"
old_layers.append(layer.name)
layer.name = new_name
for layer_name in list(edbapp.stackup.layers.keys()):
print(f"New layer name is {layer_name}")
for padstack_inst in list(edbapp.padstacks.instances.values()):
assert not [lay for lay in padstack_inst.layer_range_names if lay in old_layers]
for padstack_inst in list(edbapp.padstacks.instances.values())[:100]:
padsatck_layers = padstack_inst.layer_range_names
assert padsatck_layers not in old_layers
edbapp.close_edb()

def test_hole(self):
Expand Down

0 comments on commit df81705

Please sign in to comment.