Closed btasdelen closed 1 year ago
This commit fixes the bugs introduced in #84 due to numpy's rounding function. np.round outputs the value as np.float64, which can not be automatically cast as int, thus, can not be used for slicing the arrays.
Won't a simple int() casting work?
int()
I think it is safe to assume waveforms_and_times() will return time points on gradient raster time. So you are right, it is enough.
waveforms_and_times()
This commit fixes the bugs introduced in #84 due to numpy's rounding function. np.round outputs the value as np.float64, which can not be automatically cast as int, thus, can not be used for slicing the arrays.