aolabNeuro / aolabNeuro/analyze
calc_mt_tfr time axis not correct if step size not divisible into sampling rate
Open
- Dominant language
- Python
- Stars
- 7
- Forks
- 0
- Avg merge
- 22h 29m
- Merged PRs (30d)
- 2
Description
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?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.