Skip to content

Commit

Permalink
refactor: Update delete syntax for surfaces. (#3559)
Browse files Browse the repository at this point in the history
maint: Update delete syntax for surfaces.
  • Loading branch information
prmukherj authored Dec 20, 2024
1 parent ff3db5c commit a3f1e14
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ansys/fluent/core/post_objects/post_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,9 @@ def create_surface_on_server(self):
def delete_surface_on_server(self):
"""Deletes the surface on server."""
if self.obj.definition.type() == "iso-surface":
self._get_api_handle().iso_surface.delete(self._surface_name_on_server)
del self._get_api_handle().iso_surface[self._surface_name_on_server]
elif self.obj.definition.type() == "plane-surface":
self._get_api_handle().plane_surface.delete(
self._surface_name_on_server
)
del self._get_api_handle().plane_surface[self._surface_name_on_server]

def __init__(self, obj):
"""__init__ method of PostAPIHelper class."""
Expand Down

0 comments on commit a3f1e14

Please sign in to comment.