Skip to content

Commit

Permalink
Updated draw method 5
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar committed Jul 26, 2023
1 parent ed068a3 commit 5245512
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ansys/fluent/visualization/contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ def _get_contour_name(self):

def draw(self, solver, target):
self._error_check(solver)
existing_contours = solver.results.graphics.contour.get_object_names()
graphics_mode = target
existing_contours = (
solver.results.graphics.contour.get_object_names()
if graphics_mode.__class__.__name__ == "Solver"
else graphics_mode.Contours.allowed_values()
)
contour_name = self._get_contour_name()
if contour_name not in existing_contours:
if graphics_mode.__class__.__name__ == "Graphics":
Expand Down

0 comments on commit 5245512

Please sign in to comment.