pypsa.Network.iterate_components#
- Network.iterate_components(components: Collection[str] | None = None, skip_empty: bool = True) Iterator[Component]#
Iterate over components.
- !!! warning “Deprecated in v1.0”
Use for component in n.components instead.
Examples
>>> for component in n.iterate_components(): ... print(component) ... break 'Bus' Components