CINPLA / expipe-plugin-cinpla

Plugins for expipe command line interface
http://expipe-plugin-cinpla.readthedocs.io/en/latest/
GNU General Public License v3.0
1 stars 3 forks source link

Spikes not loaded properly? #67

Closed lepmik closed 8 months ago

lepmik commented 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)
alejoe91 commented 8 months ago

Fixed! Indeed there was a bug (the recording times were used instead of the spike times): image