from_dict#

static Response.from_dict(name: str, reference_value: bool | float | complex | list | dict) Response#

Create an instance of the Response class from optiSLang output.

Parameters:
name: str

Response’s name.

reference_value: Union[bool, float, complex, list, dict]

Response’s reference value.

Returns:
Response

Instance of the Response class.

Raises:
TypeError

Raised when undefined type of response is given.