Skip to content

Commit

Permalink
Rename variable to avoid ambiguity. (#3849)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxJPRey authored Nov 6, 2023
1 parent 876744c commit c6118db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pyaedt/edb_core/stackup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,7 @@ def _import_csv(self, file_path):
Parameters
----------
fpath : str
file_path : str
File path to the CSV file.
"""
if not pd:
Expand All @@ -1739,17 +1739,17 @@ def _import_csv(self, file_path):
logger.error("{} doesn't exist in csv".format(name))
return False

for name, l in df.iterrows():
layer_type = l.Type
for name, layer_info in df.iterrows():
layer_type = layer_info.Type
if name in self.layers:
layer = self.layers[name]
layer.type = layer_type
else:
layer = self.add_layer(name, layer_type=layer_type, material="copper", fillMaterial="copper")

layer.material = l.Material
layer.thickness = l.Thickness
layer.dielectric_fill = l.Dielectric_Fill
layer.material = layer_info.Material
layer.thickness = layer_info.Thickness
layer.dielectric_fill = layer_info.Dielectric_Fill

lc_new = self._pedb.edb_api.Cell.LayerCollection()
for name, _ in df.iterrows():
Expand Down

0 comments on commit c6118db

Please sign in to comment.