Skip to content

Commit

Permalink
fix: add missing methods (#3323)
Browse files Browse the repository at this point in the history
add missing methods
  • Loading branch information
seanpearsonuk authored Sep 30, 2024
1 parent fe5937d commit bc5ce13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ansys/fluent/core/services/datamodel_se.py
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,8 @@ def get_state(self):

return dict(sorted(returned_state.items()))

getState = __call__ = get_state


class PyQuery:
"""Query class using the StateEngine-based DatamodelService as the backend. Use this
Expand Down
4 changes: 4 additions & 0 deletions tests/test_datamodel_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,10 @@ def test_named_object_specific_methods(new_meshing_session):

assert not meshing.workflow.TaskObject.get_object_names()

# test availability of different ways to get container state:
TaskObject = meshing.workflow.TaskObject
assert TaskObject.get_state() == TaskObject.getState() == TaskObject()


@pytest.mark.codegen_required
@pytest.mark.fluent_version(">=24.1")
Expand Down

0 comments on commit bc5ce13

Please sign in to comment.