SamplingCounterAcquisitionSlave count_time incoherences
class SamplingCounterAcquisitionSlave(BaseCounterAcquisitionSlave):
def __init__(self, *counters, ctrl_params=None, count_time=None, npoints=1):
default kwargs count_time=None
is bad because count_time
must be a numeric or a list
-
Also, it fails if
count_time
is a tuple (i.e. not a list neither a numeric) -
More, in case of a list,
count_time
=>BaseCounterAcquisitionSlave.count_time = self.__count_time_point = 1
until first call totrigger()
which doesself.__count_time_point = self.__count_time_list[self.__count_time_index]
withself.__count_time_index == 0
-
More, in the class helper
count_time -- the master integration time.
should be corrected withcount_time -- the scan step counting time
-
More, in case of a list, there is no check that len(self.__count_time_list) == npoints
Edited by Perceval Guillou