datafile.py 文件源码

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

项目:spyking-circus 作者: spyking-circus 项目源码 文件源码
def _get_t_start_t_stop(self, idx, chunk_size, padding=(0,0)):

        t_start     = idx*numpy.int64(chunk_size)+padding[0]
        t_stop      = (idx+1)*numpy.int64(chunk_size)+padding[1]

        if t_stop > self.duration:
            t_stop = self.duration

        if t_start < 0:
            t_start = 0

        return t_start, t_stop
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号