Error when setting attributes on wildcard paths
- 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
Been trying to update the examples to use the recommended practices. Using a wildcard path to find things doesn't work when setting attributes on `discs = SolidCellZone(solver, name="disc*")` I think it worked on something else though I don't quite remember what
### 📝 Steps to reproduce
```py
from pathlib import Path
import ansys.fluent.core as pyfluent
from ansys.fluent.core import examples
from ansys.fluent.core.generated.solver.settings_builtin import SolidCellZone
solver = pyfluent.Solver.from_install(precision="double", processor_count=2, dimension=3)
import_filename = examples.download_file(
"brake.msh.h5",
"pyfluent/examples/Brake-Thermal-PyVista-Matplotlib",
save_path=Path.cwd(),
)
solver.settings.file.read_case(file_name=import_filename)
discs = SolidCellZone(solver, name="disc*")
discs.solid_motion.enable = True
```
Error
```py
Error: ASSQ: invalid argument [2]: improper list
Error Object: (help . #[compound-procedure])
Traceback (most recent call last):
File "C:\Users\jhilton-\Documents\pyfluent\examples\00-fluent\tsest.py", line 17, in
discs.solid_motion.enable = True
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jhilton-\Documents\pyfluent\src\ansys\fluent\core\solver\flobject.py", line 1229, in __setattr__
return attr.set_state(value)
~~~~~~~~~~~~~~^^^^^^^
File "C:\Users\jhilton-\Documents\pyfluent\src\ansys\fluent\core\solver\flobject.py", line 857, in set_state
self.flproxy.set_var(
~~~~~~~~~~~~~~~~~~~~^
self.path,
^^^^^^^^^^
...<4 lines>...
),
^^
)
^
File "C:\Users\jhilton-\Documents\pyfluent\src\ansys\fluent\core\services\settings.py", line 146, in _fn
return fn(self, *args, **kwds)
File "C:\Users\jhilton-\Documents\pyfluent\src\ansys\fluent\core\services\settings.py", line 216, in set_var
self._service_impl.set_var(request)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "C:\Users\jhilton-\Documents\pyfluent\src\ansys\fluent\core\services\settings.py", line 59, in set_var
return self.__stub.SetVar(request, metadata=self.__metadata)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jhilton-\Documents\pyfluent\.venv\Lib\site-packages\grpc\_interceptor.py", line 276, in __call__
response, ignored_call = self._with_call(
~~~~~~~~~~~~~~~^
request,
^^^^^^^^
...<4 lines>...
compression=compression,
^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "C:\Users\jhilton-\Documents\pyfluent\.venv\Lib\site-packages\grpc\_interceptor.py", line 328, in _with_call
call = self._interceptor.intercept_unary_unary(
continuation, client_call_details, request
)
File "C:\Users\jhilton-\Documents\pyfluent\src\ansys\fluent\core\services\interceptors.py", line 174, in intercept_unary_unary
return self._intercept_call(continuation, client_call_details, request)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jhilton-\Documents\pyfluent\src\ansys\fluent\core\services\interceptors.py", line 164, in _intercept_call
raise new_ex from None
RuntimeError: ASSQ: invalid argument [2]: improper list
Error Object: (help . #[compound-procedure])
```
### 💻 Which operating system are you using?
Windows
### 📀 Which ANSYS version are you using?
261
### 🐍 Which Python version are you using?
3.13
### 📦 Installed packages
Building from main
```shell
ansys-api-fluent==0.3.36
ansys-api-platform-instancemanagement==1.1.3
ansys-api-tools-filetransfer==0.1.2
-e file:///C:/Users/jhilton-/Documents/pyfluent
ansys-fluent-visualization @ git+https://github.com/ansys/pyfluent-visualization@70f764bf943b140010aac233d71490f343eb0773
ansys-platform-instancemanagement==1.1.2
ansys-tools-common==0.4.0
ansys-tools-filetransfer==0.2.1
ansys-units==0.10.0
appdirs==1.4.4
certifi==2026.1.4
charset-normalizer==3.4.4
click==8.3.1
colorama==0.4.6
contourpy==1.3.3
cycler==0.12.1
defusedxml==0.7.1
deprecated==1.3.1
docker==7.1.0
fonttools==4.61.1
googleapis-common-protos==1.72.0
grpcio==1.76.0
grpcio-health-checking==1.62.3
grpcio-status==1.62.3
idna==3.11
importlib-metadata==8.7.1
joblib==1.5.3
kiwisolver==1.4.9
matplotlib==3.10.8
nltk==3.9.2
numpy==2.4.1
packaging==26.0
pandas==2.3.3
pillow==12.1.0
platformdirs==4.5.1
pooch==1.8.2
protobuf==4.25.8
pyansys-tools-report==0.9.0
pyparsing==3.3.2
python-dateutil==2.9.0.post0
pytz==2025.2
pyvista==0.46.5
pywin32==311
pyyaml==6.0.2
regex==2026.1.15
requests==2.32.5
scooby==0.11.0
six==1.17.0
tqdm==4.67.1
typing-extensions==4.15.0
tzdata==2025.3
urllib3==2.6.3
vtk==9.5.2
wrapt==2.0.1
zipp==3.23.0
```
Contributor guide
Research direction
Reproduce the wildcard SolidCellZone example, then start in src/ansys/fluent/core/solver/flobject.py around __setattr__ and set_state, following the call into src/ansys/fluent/core/services/settings.py and set_var. The fix is complete when setting discs.solid_motion.enable succeeds for the wildcard path without the ASSQ improper-list error, with a regression test covering the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100