pypsa.get_option

Contents

pypsa.get_option#

pypsa.get_option(option_name: str) Any#

Get value for option

Parameters:

option_name (str) – The name of the option in the form “category.option_name”

Returns:

The value of the option

Return type:

Any

See also

set_option

Set value for option

describe_options

Print documentation for all options

Examples

>>> import pypsa
>>> pypsa.get_option("warnings.components_store_iter")
True

or

>>> pypsa.options.warnings.components_store_iter
True