Skip to content
Discussion options

You must be logged in to vote

The issue is that DataChunkIterator assumes data are read in a very particular manner: It wraps returns one element along the iteration dimension at a time. I.e., the iterator is expected to return chunks that are one dimension lower than the array itself. For example, when iterating over the first dimension of a dataset with shape (1000, 10, 10), then the iterator would return 1000 chunks of shape (10, 10) one-chunk-at-a-time.

The solution was to create a new subclass of GenericDataChunkIterator or SpikeInterfaceRecordingDataChunkIterator that wraps the original SpikeInterfaceRecordingDataChunkIterator and modifies the _get_data method to get the data from the wrapped iterator, modify it…

Replies: 2 comments 2 replies

Comment options

rly
Oct 29, 2025
Maintainer Author

You must be logged in to vote
2 replies
@rly
Comment options

rly Oct 29, 2025
Maintainer Author

@rly
Comment options

rly Oct 29, 2025
Maintainer Author

Answer selected by rly
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants