-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: Add way to only load a subset of channels and range of data #12
Comments
For the Binary and HDF5 formats (NWB and KWIK), the data is memory mapped and only loaded upon request. So this is already implemented for those formats. For the Open Ephys format, the data is all loaded at once, so this is a feature we'll want to add. We don't have a timeline for this yet, but we'll leave this issue open because it's important to do. |
I've also just realized that Open Ephys format files are loaded all at once. This is a huge issue, as all my recordings (not Neuropixels, but still large) are in that format and therefore cannot be loaded on most machines. |
@medengineer we should add this feature ASAP. Regarding the implementation, I think we should follow the conventions used by SpikeInterface: For a traces = recording.get_traces(start_frame=0, end_frame=30000, channels=np.arange(10)) would load the first 30k samples for the first 10 channels into memory. |
Thanks @jsiegle. I'm not proud of it, but I've worked around this in the meantime by loading the data in matlab (while keeping things int16 as much as possible), then dumping to a binary. |
This feature is implemented for the Open Ephys format in the latest version (now available to install via PyPI). See the The Open Ephys format loader is only compatible with data saved by |
Sorry for the post if I am missing something. I am wondering if this functionality could be added so we don't have to load an entire recording.
The text was updated successfully, but these errors were encountered: