network_analyzer.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:pyrpl 作者: lneuhaus 项目源码 文件源码
def __init__(self, module, min_delay_ms, autostart=True):
        self._module = module
        self._min_delay_ms = min_delay_ms
        self.current_point = 0
        self.current_avg = 0
        self.n_points = self._module.points
        self._paused = True
        self._fut = None # placeholder for next point future
        self.never_started = True
        super(NaCurveFuture, self).__init__()

        self.data_x = copy(self._module._data_x)  # In case of saving latter.
        self.data_avg = np.empty(self.n_points,
                                 dtype=np.complex)
        self.data_avg.fill(np.nan)
        self.data_amp = np.empty(self.n_points)
        self.data_amp.fill(np.nan)
        # self.start()
        self._reset_benchmark()
        self.measured_time_per_point = np.nan  #  measured over last scan
        if autostart:
            self.start()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号