MCPcopy Create free account
hub / github.com/ahalev/python-microgrid / iterdict

Method iterdict

src/pymgrid/modules/module_container.py:108–119  ·  view source on GitHub ↗

Iterable of the container's modules as a dict. Returns ------- iter : generator Iterator of (name, module) pairs.

(self)

Source from the content-addressed store, hash-verified

106 yield module
107
108 def iterdict(self):
109 """
110 Iterable of the container's modules as a dict.
111
112 Returns
113 -------
114 iter : generator
115 Iterator of (name, module) pairs.
116
117 """
118 for name, modules in self.to_dict().items():
119 yield name, modules
120
121 def iteritems(self):
122 for name, module in self.to_dict(orient='records').items():

Callers 15

to_tuplesMethod · 0.95
check_viabilityFunction · 0.80
to_nonmodularFunction · 0.80
_get_modulesMethod · 0.80
resetMethod · 0.80
stepMethod · 0.80
to_normalizedMethod · 0.80
from_normalizedMethod · 0.80
get_logMethod · 0.80

Calls 1

to_dictMethod · 0.95