Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: rename_layers #691

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/pyedb/dotnet/edb_core/edb_data/layer_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ def name(self, name):
layer_clone.SetName(name)
self._pedb.stackup._set_layout_stackup(layer_clone, "change_name", self._name)
self._name = name
for padstack_def in list(self._pedb.padstacks.definitions.values()):
padstack_def._update_layer_names(old_name=old_name, updated_name=name)
if self.type == "signal":
for padstack_def in list(self._pedb.padstacks.definitions.values()):
padstack_def._update_layer_names(old_name=old_name, updated_name=name)

@property
def type(self):
Expand Down
3 changes: 2 additions & 1 deletion src/pyedb/dotnet/edb_core/stackup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,8 @@ def _import_dict(self, json_dict, rename=False):
for lay_ind in range(len(list(temp.keys()))):
if not config_file_layers[lay_ind] == layout_layers[lay_ind]:
renamed_layers[layout_layers[lay_ind]] = config_file_layers[lay_ind]
for name in list(self.stackup_layers.keys()):
layers_names = list(self.stackup_layers.keys())[::]
for name in layers_names:
layer = None
if name in temp:
layer = temp[name]
Expand Down
Loading