Skip to content

Commit

Permalink
fixing bug with edbpath provided
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenb-dev committed Jul 16, 2024
1 parent 1466aed commit bb8d208
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pyedb/dotnet/edb.py
Original file line number Diff line number Diff line change
Expand Up @@ -4144,6 +4144,7 @@ def auto_parametrize_design(
List(str)
List of all parameters name created.
"""
edb_original_path = self.edbpath
if output_aedb_path:
self.save_edb_as(output_aedb_path)
if isinstance(trace_net_filter, str):
Expand Down Expand Up @@ -4311,14 +4312,14 @@ def _apply_variable(orig_name, orig_value):
elif poly.has_voids:
for void in poly.voids:
void.expand(expand_voids_size, round_corners=False)
edb_original_path = self.edbpath

if not open_aedb_at_end and self.edbpath != edb_original_path:
self.save_edb()
self.close_edb()
self.edbpath = edb_original_path
self.open_edb()
else:
self.save()
# elif open_aedb_at_end and self.edbpath != edb_original_path:
# self.save()
return parameters

def _clean_string_for_variable_name(self, variable_name):
Expand Down

0 comments on commit bb8d208

Please sign in to comment.