You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Open Ephys with Neuronexus probes. We have previously used the archive code to pack our Open Ephys files into .dat file which is required by Kilosort. Is this function available in these tools or are there other ways to do it?
For example, for the data in the first data stream saved by the first record node, this is the code you'd need:
fromopen_ephys.analysisimportSessionsession=Session('/path/to/data/directory')
data=session.recordnodes[0].recordings[0].continuous[0].samplesdata=data.astype('int16') # convert to 16-bit integers before exportdata.tofile('continuous.dat') # write samples to a .dat file
Activity
medengineer commentedon Jul 13, 2023
Hi,
Yes, you just need to load the continuous[0].samples and call np.tofile on that array.
jsiegle commentedon Jul 13, 2023
For example, for the data in the first data stream saved by the first record node, this is the code you'd need: