diff --git a/doc/changelog.d/4752.fixed.md b/doc/changelog.d/4752.fixed.md new file mode 100644 index 000000000000..d90354f3b13a --- /dev/null +++ b/doc/changelog.d/4752.fixed.md @@ -0,0 +1 @@ +Update argument names as per Fluent change. diff --git a/src/ansys/fluent/core/codegen/print_fluent_version.py b/src/ansys/fluent/core/codegen/print_fluent_version.py index f48e51b54c47..58a3b0f0cf4b 100644 --- a/src/ansys/fluent/core/codegen/print_fluent_version.py +++ b/src/ansys/fluent/core/codegen/print_fluent_version.py @@ -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): @@ -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__": diff --git a/src/ansys/fluent/core/services/settings.py b/src/ansys/fluent/core/services/settings.py index 2f22176ddda6..89781ac4d840 100644 --- a/src/ansys/fluent/core/services/settings.py +++ b/src/ansys/fluent/core/services/settings.py @@ -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) diff --git a/src/ansys/fluent/core/solver/flobject.py b/src/ansys/fluent/core/solver/flobject.py index 3e4a64bc728b..387085a1b95e 100644 --- a/src/ansys/fluent/core/solver/flobject.py +++ b/src/ansys/fluent/core/solver/flobject.py @@ -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)