-
Notifications
You must be signed in to change notification settings - Fork 58
fix: Update argument names as per Fluent change. #4752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates argument names in PyFluent to align with changes made in Fluent 26.1, where the list-properties command's parameter naming was modified. The changes remove workarounds that were previously necessary to handle parameter name conflicts.
Key Changes:
- Updated
list_propertiesmethod to use the newobject_pathparameter instead of the previouspath_1andnameparameters - Removed the workaround logic in
execute_cmdthat renamedpath_1topath - Added PyFluent version tracking to the Fluent version information output
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/ansys/fluent/core/solver/flobject.py | Updated list_properties to use new object_path parameter with concatenated path |
| src/ansys/fluent/core/services/settings.py | Removed path_1 to path parameter renaming workaround from execute_cmd |
| src/ansys/fluent/core/codegen/print_fluent_version.py | Added PyFluent version output to version information file |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Context
Argument name of global list-properties command has been changed in Fluent during 26.1 (PR 620650). This results in inconsistent behavior in PyFluent.
Corresponding Fluent bug - 1385223
Change Summary
Update argument names in PyFluent as per latest Fluent code.
Rationale
list-properties should be called with correct argument names from PyFluent.
Impact
Fix inconsistent behavior, unintended warnings.