Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ansys/fluent/core/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def __init__(
)
self.field_data = service_creator("field_data").create(
_session._field_data_service,
self.field_info,
self._field_info,
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Swapping to the private _field_info likely avoids triggering the deprecation warning emitted by the public field_info accessor; consider adding a brief inline comment to document that intent for future maintainers.

Copilot uses AI. Check for mistakes.
self._is_solution_data_valid,
_session.scheme,
get_zones_info,
Expand All @@ -520,7 +520,7 @@ def __init__(
)
self.field_data_old = service_creator("field_data_old").create(
_session._field_data_service,
Comment on lines 521 to 522
Copy link

Copilot AI Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Same as line 513: add a short comment explaining use of the private _field_info to prevent internal deprecation noise.

Suggested change
self.field_data_old = service_creator("field_data_old").create(
_session._field_data_service,
# Use of the private _field_info prevents internal deprecation noise.
self.field_data_old = service_creator("field_data_old").create(

Copilot uses AI. Check for mistakes.
self.field_info,
self._field_info,
self._is_solution_data_valid,
_session.scheme,
)
Expand Down
Loading