-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
def product_solver_option(self, product_id, solver_name): |
def product_solver_names(self, product_id): |
These functions both fail with the below messages:
self = <ansys.edb.core.terminal.padstack_instance_terminal.PadstackInstanceTerminal object at 0x000002DA0101B4F0>
product_id = <ProductIdType.HFSS_3D_LAYOUT: 0>, 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
Metadata
Metadata
Assignees
Labels
No labels