Skip to content

Commit

Permalink
pass callable
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar committed Dec 19, 2024
1 parent eeaab40 commit 2e74007
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ansys/fluent/core/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,17 @@ class Fields:

def __init__(self, _session):
"""Initialize Fields."""
self.is_data_valid = (
_session._app_utilities.is_solution_data_available()
self._is_solution_data_valid = (
_session._app_utilities.is_solution_data_available
)
self.field_info = service_creator("field_info").create(
_session._field_data_service,
self.is_data_valid,
self._is_solution_data_valid(),
)
self.field_data = service_creator("field_data").create(
_session._field_data_service,
self.field_info,
self.is_data_valid,
self._is_solution_data_valid(),
_session.scheme_eval,
)
self.field_data_streaming = FieldDataStreaming(
Expand All @@ -204,7 +204,7 @@ def __init__(self, _session):
self.field_data_old = service_creator("field_data_old").create(
_session._field_data_service,
self.field_info,
self.is_data_valid,
self._is_solution_data_valid(),
_session.scheme_eval,
)

Expand Down

0 comments on commit 2e74007

Please sign in to comment.