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

Method to_list

src/pymgrid/modules/module_container.py:28–41  ·  view source on GitHub ↗

Get the modules as a list. Returns ------- l : list of modules List of modules

(self)

Source from the content-addressed store, hash-verified

26 return self
27
28 def to_list(self):
29 """
30 Get the modules as a list.
31
32 Returns
33 -------
34 l : list of modules
35 List of modules
36
37 """
38 l = []
39 for _, raw_container in self.containers.items():
40 l.extend(raw_container.to_list())
41 return l
42
43 def to_dict(self, orient='list'):
44 """

Callers 7

iterlistMethod · 0.95
get_logMethod · 0.45
module_listMethod · 0.45

Calls

no outgoing calls

Tested by 4