pypsa.set_option

Contents

pypsa.set_option#

pypsa.set_option(option_name: str, value: Any) None#

Set value for option

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

  • value (Any) – The value to set

Return type:

None

See also

get_option

Get value for option

describe_options

Print documentation for all options

Examples

>>> import pypsa
>>> pypsa.set_option("warnings.components_store_iter", False)

or

>>> pypsa.options.warnings.components_store_iter = False