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
{{ message }}
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
Our group would like to cut a portion of time out of a continuous.dat file, and the remerge the beginning and ending of the file. We will then use the remerged file for spike sorting. I saw a recent post about merging two files- could anyone suggest ways of splitting a file by timestamp? Thank you in advance!
Thank you so much for your help! In your experience with this, does the function generation new timestamps for the second block of data, or does it maintain the original? Thanks again!
Activity
jsiegle commentedon Oct 23, 2022
Hi! I'd recommend using the
numpy.ndarray.tofilemethod for this.Here's an example of how to load the
continuous.datfile using memory mapping:And here's how to write blocks from the beginning and end to a new file:
apearson98 commentedon Oct 23, 2022
Thank you so much for your help! In your experience with this, does the function generation new timestamps for the second block of data, or does it maintain the original? Thanks again!
jsiegle commentedon Oct 24, 2022
This will only affect the .dat file, not the timestamps.
To get the new timestamps, you can use the following code: