Cannot retrieve product solver names or options from terminals
- Dominant language
- Python
- Stars
- 7
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/ansys/pyedb-core/blob/0772bc46d2d9ce12421e36c86d2ce37ed3a5e3e1/src/ansys/edb/core/terminal/terminal.py#L282
https://github.com/ansys/pyedb-core/blob/0772bc46d2d9ce12421e36c86d2ce37ed3a5e3e1/src/ansys/edb/core/terminal/terminal.py#L319
These functions both fail with the below messages:
```
self =
product_id = , solver_name = 'HFSS'
def product_solver_option(self, product_id, solver_name):
"""Get the name of the product solver option.
Parameters
----------
product_id : ProductIdType
ID of the product.
solver_name : :obj:`str`
Name of the solver.
Returns
-------
:obj:`str`
Name of the product solver option.
"""
> return next(
solver.option
for solver in self._product_solvers(product_id)
if solver.name == solver_name
)
E TypeError: 'TermProductSolversMessage' object is not iterable
venv\lib\site-packages\ansys\edb\core\terminal\terminal.py:297: TypeError
```
Contributor guide
Research direction
Start in src/ansys/edb/core/terminal/terminal.py at the linked lines around the product solver name and option functions. Reproduce the calls shown in the traceback and inspect the value returned by _product_solvers. Done means terminal solver names and options can be retrieved without the reported TypeError, with relevant tests passing.
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
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100