Skip to content

Cannot retrieve product solver names or options from terminals #593

@isaacwaldron

Description

@isaacwaldron

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

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions