Skip to content

Commit

Permalink
fix: Bug in visualization. (#3216)
Browse files Browse the repository at this point in the history
  • Loading branch information
prmukherj authored Aug 20, 2024
1 parent 6f7f6f4 commit 0013076
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/ansys/fluent/core/post_objects/post_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,15 @@ def __init__(self, obj):
self.obj = obj
self.field_info = lambda: obj.get_root().session.fields.field_info
self.field_data = lambda: obj.get_root().session.fields.field_data
self.monitors = obj.get_root().session.monitors
self.id = lambda: obj.get_root().session.id
if obj.__class__.__name__ == "Surface":
self.surface_api = PostAPIHelper._SurfaceAPI(obj)

@property
def monitors(self):
"""Returns the session monitors."""
return self.obj.get_root().session.monitors

def remote_surface_name(self, local_surface_name):
"""Returns the surface name."""

Expand Down
2 changes: 1 addition & 1 deletion tests/test_solver_monitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ansys.fluent.core.utils.execution import timeout_loop


@pytest.mark.fluent_version(">=23.1")
@pytest.mark.fluent_version(">=23.2")
def test_solver_monitors(new_solver_session):

solver = new_solver_session
Expand Down

0 comments on commit 0013076

Please sign in to comment.