Skip to content

Commit 6e0c7a3

Browse files
authored
fix boundary delete (#4175)
1 parent ac4b244 commit 6e0c7a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyaedt/modules/Boundary.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def delete(self):
9494
self._app.o_maxwell_parameters.DeleteParameters([self.name])
9595
else:
9696
self._app.oboundary.DeleteBoundaries([self.name])
97-
for el in self._app.boundaries:
97+
for el in self._app.boundaries[:]:
9898
if el.name == self.name:
99-
self._app.boundaries.remove(el)
99+
del self._app._boundaries[el.name]
100100
return True
101101

102102
def _get_boundary_data(self, ds):

0 commit comments

Comments
 (0)