Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bliss
python-handel
Commits
acf27edf
Commit
acf27edf
authored
Aug 30, 2017
by
Vincent Michel
Browse files
Add get_all_channels
parent
beb5dc45
Pipeline
#904
passed with stages
in 1 minute and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
handel/interface.py
View file @
acf27edf
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment