Skip to content

fix: Deprecation behavior. - #5322

Merged
prmukherj merged 4 commits into
mainfrom
fix/deprecation_behavior
Aug 19, 2026
Merged

fix: Deprecation behavior.#5322
prmukherj merged 4 commits into
mainfrom
fix/deprecation_behavior

Conversation

@prmukherj

@prmukherj prmukherj commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Context

An incorrect import path was used for convert_variant_to_value for 27R1 tests.

Change Summary

Updated import paths.
Resolved a few deprecated imports.

@github-actions github-actions Bot added the bug Issue, problem or error in PyFluent label Aug 18, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@prmukherj prmukherj changed the title Fix: Deprecation behavior. fix: Deprecation behavior. Aug 18, 2026
@prmukherj prmukherj linked an issue Aug 18, 2026 that may be closed by this pull request
@prmukherj
prmukherj marked this pull request as ready for review August 18, 2026 14:49
Comment thread src/ansys/fluent/core/utils/deprecate.py
@prmukherj
prmukherj enabled auto-merge (squash) August 18, 2026 18:10
@prmukherj
prmukherj merged commit e2276b5 into main Aug 19, 2026
62 of 63 checks passed
@prmukherj
prmukherj deleted the fix/deprecation_behavior branch August 19, 2026 03:18
Comment thread tests/test_rp_vars.py

from ansys.fluent.core.examples import download_file, path
from ansys.fluent.core.filereader.casereader import CaseReader
from ansys.fluent.core.filereader.case_file import CaseFile as CaseReader

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
from ansys.fluent.core.filereader.case_file import CaseFile as CaseReader
from ansys.fluent.core.filereader.case_file import CaseFile

Comment thread tests/test_rp_vars.py
assert len(all_vars) == pytest.approx(9000, 20)

# CaseFile comparison, note that the PyFluent work dir is not necessarily the same as the Fluent work dir
case = CaseReader(case_file_name=path(case_path))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
case = CaseFile(case_file_name=path(case_path))

Comment on lines 42 to 44
from ansys.fluent.core._grpc_services.object_model_service_v0 import (
_convert_value_to_variant,
_convert_variant_to_value,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The old version should keep the version suffix; the new version can be imported directly without suffix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue, problem or error in PyFluent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Real error buried inside pytest log

5 participants