From 2e7400709d1e612063c207e1982cf9eba34bf7e5 Mon Sep 17 00:00:00 2001 From: Harshal Pohekar Date: Thu, 19 Dec 2024 10:13:59 +0530 Subject: [PATCH] pass callable --- src/ansys/fluent/core/session.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ansys/fluent/core/session.py b/src/ansys/fluent/core/session.py index eb3beedc8d9..309a635318c 100644 --- a/src/ansys/fluent/core/session.py +++ b/src/ansys/fluent/core/session.py @@ -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( @@ -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, )