Commit acf27edf authored by Vincent Michel's avatar Vincent Michel

Add get_all_channels

parent beb5dc45
Pipeline #904 passed with stages
in 1 minute and 51 seconds
......@@ -289,9 +289,16 @@ def get_module_channel_at(alias, index):
def get_module_channels(alias):
"""Return the module channels properly indexed."""
number_of_channels = get_module_number_of_channels(alias)
return [get_module_channel_at(alias, index)
for index in range(number_of_channels)]
return tuple(
get_module_channel_at(alias, index)
for index in range(number_of_channels))
def get_all_channels():
"""Return the indexed channels grouped by modules."""
return tuple(get_module_channels(alias) for alias in get_modules())
# Not exposed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment