Closed lepmik closed 8 months ago
Quite sure 27M spikes is wrong somehow
import expipe from expipe_plugin_cinpla.data_loader import load_spiketrains project_path = "/projects/ec109/Mikkel/septum-mec-new/" project = expipe.get_project(project_path) actions = project.actions action_id = "1834-010319-3" action = actions[action_id] data_path = action.data_path() / "main.nwb" channel_id = 0 spike_trains = load_spiketrains(data_path, "tetrode"+str(channel_id)) st = spike_trains[0] st.shape, st.t_stop >>> ((27080448,), array(940.2709) * s)
Fixed! Indeed there was a bug (the recording times were used instead of the spike times):
Quite sure 27M spikes is wrong somehow