finesse.analysis.actions.lti.FrequencyResponseSolution.outputs_inputs_indices¶
- FrequencyResponseSolution.outputs_inputs_indices(outputs: List[str], inputs: List[str], *, reversed: bool = False) Tuple[int, int] [source]¶
Returns the indices to use for selecting certain inputs and outputs from the out attribute of this solution object.
- Parameters
- outputsList[str]
List of names of outputs, see outputs attribute for options
- inputsList[str]
List of names of inputs, see inputs attribute for options
- reversedbool, optional
Should not be used by the user, this is an internal flag used for checking if the reverse case should be tried, ie. inputs specified first rather than outputs. This is for backwards compatibility before FrequencyResponse was fixed.
- Returns
- output_index, input_index
Indices for the outputs and inputs
- Raises
- KeyError
Raised when no input or output name can be found.