magland / sortingview

Web app for viewing results of ephys spike sorting
Apache License 2.0
23 stars 7 forks source link

For recordings with frame > (2 ** 31 - 1), data type of two variables in in prepare_spikesortingview_data need to change from np.int32 to np.int64. #229

Closed donghoon-shin closed 6 months ago

donghoon-shin commented 6 months ago

For recordings with frame > 2**31 - 1 (about 29.8h recording with Fs=20000), num_frames should be in np.int64

and spike_train should have elements in np.int64.

I changed these variables to have data type of np.int64 only when recording.get_num_frames() > (2 ** 31 - 1).

I tested this version for two 2.64 days recordings one sorted with scheme3 with block_size = a day, and the other one with scheme2.

magland commented 6 months ago

Awesome, thanks!