ansys / ansys/pyfluent

set_state no longer available in arguments

Open
#5,014 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
497
Forks
77
Avg merge
22h 37m
Merged PRs (30d)
45

Description

### 🔍 Before submitting the issue

- [x] I have searched among the existing issues
- [x] I am using a Python virtual environment

### 🐞 Description of the bug

previous to release 0.38 it was possible to assign settings using `arguments.set_state`, which is no longer possible and causes below error;
```
AttributeError: 'function' object has no attribute 'set_state'
```

### 📝 Steps to reproduce

```
import ansys.fluent.core as pyfluent
meshing= pyfluent.launch_fluent(mode='meshing')
fault_tolerant=meshing.fault_tolerant()
dir(fault_tolerant.define_leakage_threshold.arguments)
```

check above in 0.38 and previous release, see no `set_state` available

### 💻 Which operating system are you using?

Linux

### 📀 Which ANSYS version are you using?

_No response_

### 🐍 Which Python version are you using?

3.10

### 📦 Installed packages

```shell
ansys-api-fluent==0.3.38
ansys-api-platform-instancemanagement==1.1.3
ansys-api-tools-filetransfer==0.2.0
ansys-fluent-core==0.38.0
ansys-platform-instancemanagement==1.1.2
ansys-tools-common==0.5.0
ansys-tools-filetransfer==0.2.2
ansys-units==0.10.1
certifi==2026.2.25
charset-normalizer==3.4.6
click==8.3.1
defusedxml==0.7.1
Deprecated==1.3.1
docker==7.1.0
googleapis-common-protos==1.73.0
grpcio==1.78.0
grpcio-health-checking==1.78.0
grpcio-status==1.78.0
idna==3.11
importlib_metadata==9.0.0
joblib==1.5.3
nltk==3.9.4
numpy==2.2.6
pandas==2.3.3
platformdirs==4.9.4
protobuf==6.33.6
python-dateutil==2.9.0.post0
pytz==2026.1.post1
PyYAML==6.0.3
regex==2026.2.28
requests==2.32.5
scooby==0.11.0
six==1.17.0
tqdm==4.67.3
typing_extensions==4.15.0
tzdata==2025.3
urllib3==2.6.3
wrapt==2.1.2
zipp==3.23.0
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with launch_fluent(mode='meshing') and inspect fault_tolerant.define_leakage_threshold.arguments in version 0.38, then compare that object with the previous release. Trace where the arguments API is created and identify why set_state is missing. Done means the documented arguments object exposes set_state again without the AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.