def _new_point_arrived(self, point):
if self._paused:
return
self._update_benchmark()
try:
point = point.result()
except CancelledError:
self._point_cancelled()
return # exit the loop (could be restarted latter for RunFuture)
self._add_point(point)
# if zero span mode, data_x is time measured, not frequency
if self._module.is_zero_span():
if self.current_avg==1:
time_now = timeit.default_timer() - self._time_first_point
self.data_x[self.current_point] = time_now
self._module._data_x[self.current_point] = time_now
self.current_point+=1
if self.current_point==self.n_points:
self._scan_finished()
else:
self._setup_next_point()
评论列表
文章目录