catalystneuro / buffalo-lab-to-nwb

Scripts to convert Buffalo Lab data to the NWB standard
2 stars 0 forks source link

`EyeTracking` should use rate instead of timestamps #24

Closed bendichter closed 4 years ago

bendichter commented 4 years ago

My general rule of thumb is to use rate instead of timestamps if the max sampling difference is less than 1/1000 of the mean sampling difference

dt = np.diff(timestamps)
((np.max(dt) - np.min(dt))/np.mean(dt)) <  (1/1000)