aolabNeuro / aolabNeuro/analyze

calc_mt_tfr time axis not correct if step size not divisible into sampling rate

未关闭
#510 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
7
派生
0
平均合并
22 小时 29 分钟
30 天内合并 PR
2

描述

we do ```step_size = int(np.floor(step*fs)) # step size``` to calculate the positions of the bins
but then ```t = np.arange(nwin)*step + n/2 # Center of each window is time axis``` to make a time axis

if `step*fs` is not an integer, then the time axis will not be correct
maybe we can do `step = float(step_size)/fs` as a final step before calculating the time axis @resatomo?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。