ansys / ansys/pyfluent

[BUG]: group_children argument used in get_attrs

Open
#5,278 1 comment 0 reactions 1 assignee Claimed by @prmukherj View on GitHub
bug
Dominant language
Python
Stars
497
Forks
77
Avg merge
22h 37m
Merged PRs (30d)
45

Description

### ✅ Before submitting

- [x] I have searched the [existing issues](https://github.com/ansys/pyfluent/issues) and did not find a duplicate.
- [x] I am using a Python virtual environment.
- [x] I have confirmed this is a PyFluent issue, not a problem with Ansys Fluent. See the [posting issues guide](https://fluent.docs.pyansys.com/version/stable/contributing/contributing_contents.html#post-issues).

### 📝 Description of the bug

Running the unit test [test_action_behaviour ](https://github.com/ansys/pyfluent/blob/main/tests/test_settings_api.py#L916)adapted for pyconsole, `group_children` is not available in `result` for below assert statement;
```
result = solver.settings.solution.run_calculation.iterate.get_attrs(
["active?"], recursive=True
)
assert "iter-count" in result["group_children"]
```
`children` is available and according to api team this is correct usage

### 🔁 Steps to reproduce

```python
run below commands in pyfluent and pyconsole sessions, see the `children`

from ansys.fluent.core.examples import download_file
case_name = download_file("mixing_elbow.cas.h5", "pyfluent/mixing_elbow")
solver.settings.file.read(
file_type="case",
file_name=case_name,
)

solver.settings.solution.run_calculation.iterate.iter_count = 55

result = solver.settings.solution.run_calculation.iterate.get_attrs(
["active?"], recursive=True
)
assert "iter-count" in result["group_children"]
```

### 🎯 Expected behavior

`group_children` should fail the assert statement

### 💥 Actual behavior / traceback

```shell

```

### 📦 PyFluent version

0.39.1

### 🌀 Ansys Fluent version

2027 R1 (27.1)

### 🐍 Python version

3.13

### 💻 Operating system

Windows

### 📌 Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.