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
cde1223f
Commit
cde1223f
authored
Aug 08, 2017
by
Vincent Michel
Browse files
Rename apply_acquisition_values
parent
cf3f10b7
Pipeline
#808
passed with stages
in 1 minute and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
handel/interface.py
View file @
cde1223f
...
...
@@ -17,7 +17,7 @@ __all__ = ['init', 'init_handel', 'exit',
'set_log_output'
,
'set_log_level'
,
'close_log'
,
'get_num_modules'
,
'get_modules'
,
'get_module_from_channel'
,
'set_acquisition_value'
,
'get_acquisition_value'
,
'remove_acquisition_value'
,
'apply_acquisition_value'
,
'remove_acquisition_value'
,
'apply_acquisition_value
s
'
,
'get_handel_version'
]
MAX_STRING_LENGTH
=
80
...
...
@@ -293,7 +293,7 @@ def remove_acquisition_value(channel, name):
check_error
(
code
)
def
apply_acquisition_value
(
channel
):
def
apply_acquisition_value
s
(
channel
):
dummy
=
ffi
.
new
(
'int *'
)
code
=
handel
.
xiaBoardOperation
(
channel
,
b
'apply'
,
dummy
)
check_error
(
code
)
...
...
tests/test_interface.py
View file @
cde1223f
...
...
@@ -434,10 +434,10 @@ def test_remove_acquisition_value(interface):
interface
.
check_error
.
assert_called_once_with
(
0
)
def
test_apply_acquisition_value
(
interface
):
def
test_apply_acquisition_value
s
(
interface
):
m
=
interface
.
handel
.
xiaBoardOperation
m
.
return_value
=
0
assert
interface
.
apply_acquisition_value
(
1
)
is
None
assert
interface
.
apply_acquisition_value
s
(
1
)
is
None
dummy
=
m
.
call_args
[
0
][
2
]
m
.
assert_called_once_with
(
1
,
b
'apply'
,
dummy
)
# Make sure errors have been checked
...
...
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