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
beb5dc45
Commit
beb5dc45
authored
Aug 30, 2017
by
Vincent Michel
Browse files
Add get_module_channels
parent
8ed85241
Pipeline
#903
passed with stages
in 1 minute and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
handel/interface.py
View file @
beb5dc45
...
...
@@ -279,6 +279,21 @@ def get_module_number_of_channels(alias):
return
value
[
0
]
def
get_module_channel_at
(
alias
,
index
):
alias
=
to_bytes
(
alias
)
value
=
ffi
.
new
(
'int *'
)
key
=
b
'channel%d_alias'
%
index
code
=
handel
.
xiaGetModuleItem
(
alias
,
key
,
value
)
check_error
(
code
)
return
value
[
0
]
def
get_module_channels
(
alias
):
number_of_channels
=
get_module_number_of_channels
(
alias
)
return
[
get_module_channel_at
(
alias
,
index
)
for
index
in
range
(
number_of_channels
)]
# Not exposed
# int xiaNewModule(char *alias);
...
...
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