Skip to content
Merged
Show file tree
Hide file tree
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
Next Next commit
fix: Update argument names as per Fluent change.
  • Loading branch information
mkundu1 committed Dec 16, 2025
commit 6974df56274b687be558137d11a6f709e58163f7
3 changes: 2 additions & 1 deletion src/ansys/fluent/core/codegen/print_fluent_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

"""Module to write Fluent version information."""

from ansys.fluent.core import FluentVersion, config, launch_fluent
from ansys.fluent.core import FluentVersion, __version__, config, launch_fluent


def print_fluent_version(app_utilities):
Expand All @@ -36,6 +36,7 @@ def print_fluent_version(app_utilities):
f.write(f'FLUENT_BUILD_ID = "{build_info.build_id}"\n')
f.write(f'FLUENT_REVISION = "{build_info.vcs_revision}"\n')
f.write(f'FLUENT_BRANCH = "{build_info.vcs_branch}"\n')
f.write(f"PYFLUENT_VERSION = '{__version__}'\n")


if __name__ == "__main__":
Expand Down
8 changes: 1 addition & 7 deletions src/ansys/fluent/core/services/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,17 +345,11 @@ def get_static_info(self) -> dict[str, Any]:

@_trace
def execute_cmd(self, path: str, command: str, **kwds) -> Any:
"""Execute a given command with the provided keyword arguments.

If `path` is in kwds, rename it to `path_1` to avoid conflict with
the `path` argument.
"""
"""Execute a given command with the provided keyword arguments."""
request = _get_request_instance_for_path(
SettingsModule.ExecuteCommandRequest, path
)
request.command = command
if "path_1" in kwds:
kwds["path"] = kwds.pop("path_1")
self._set_state_from_value(request.args, kwds)

response = self._service_impl.execute_cmd(request)
Expand Down
3 changes: 1 addition & 2 deletions src/ansys/fluent/core/solver/flobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -1536,8 +1536,7 @@ def list_properties(self, object_name):
Name of the object whose properties are to be listed.
"""
if FluentVersion(self._version) >= FluentVersion.v261:
# The generated parameter name is path_1 as the name path clashes with existing property.
return self._root.list_properties(path_1=self.path, name=object_name)
return self._root.list_properties(object_path=f"{self.path}/{object_name}")
else:
return self.list_properties_1(object_name=object_name)

Expand Down
Loading