Commit cde1223f authored by Vincent Michel's avatar Vincent Michel

Rename apply_acquisition_values

parent cf3f10b7
Pipeline #808 passed with stages
in 1 minute and 16 seconds
......@@ -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_values',
'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_values(channel):
dummy = ffi.new('int *')
code = handel.xiaBoardOperation(channel, b'apply', dummy)
check_error(code)
......
......@@ -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_values(interface):
m = interface.handel.xiaBoardOperation
m.return_value = 0
assert interface.apply_acquisition_value(1) is None
assert interface.apply_acquisition_values(1) is None
dummy = m.call_args[0][2]
m.assert_called_once_with(1, b'apply', dummy)
# Make sure errors have been checked
......
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