Skip to content

Fix partial reads of channel-major binary files (time_axis=1) - #4983

Open
AxelNoun wants to merge 1 commit into
SpikeInterface:mainfrom
AxelNoun:fix/si-t02-1-binary-channel-major-reads
Open

AxelNoun wants to merge 1 commit into
SpikeInterface:mainfrom
AxelNoun:fix/si-t02-1-binary-channel-major-reads

Conversation

@AxelNoun

@AxelNoun AxelNoun commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #4959.

With time_axis=1 the file is channel-major, so a time window is one block per channel on disk, not a single contiguous block. BinaryRecordingSegment.get_traces now maps the window of each requested channel and copies it into the output (option B in the issue). The time_axis=0 path is unchanged.

The cache=False path of #4969 also reads one contiguous block and reshapes it to (num_channels, num_frames), so it returns the same wrong values for time_axis=1 (checked with the example of the issue) and would need the same change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BinaryRecordingExtractor returns wrong traces for partial reads when time_axis=1

1 participant