Skip to content

Update read_openephys and add OneBox tests#4456

Open
alejoe91 wants to merge 23 commits intoSpikeInterface:mainfrom
alejoe91:oebin-for-openephys-probe
Open

Update read_openephys and add OneBox tests#4456
alejoe91 wants to merge 23 commits intoSpikeInterface:mainfrom
alejoe91:oebin-for-openephys-probe

Conversation

@alejoe91
Copy link
Member

@alejoe91 alejoe91 commented Mar 17, 2026

Update

Requires SpikeInterface/probeinterface#409

In SpikeInterface/probeinterface#409 we improved the matching and sorting of device channel indices when a channel map is present (as in #4394). Now te probeinterface reader handles the re-ordering of contacts, so we don't need any additional logic on the SI side.

Added tests for OneBox, including the "non-trivial" wiring. In the latter test, we check that the recording channel ids (from the oebin) correspond to the settings_channel_key annotation, which has been sorted according to the channel map

Original

Requires SpikeInterface/probeinterface#406

In SpikeInterface/probeinterface#406 we improved the matching and sorting of device channel indices using the electrode_index field in the oebin file. This PR simply looks for the oebin file and passes it to the probeinterface reader

@alejoe91 alejoe91 requested a review from h-mayorquin March 17, 2026 17:02
@alejoe91 alejoe91 added the extractors Related to extractors module label Mar 17, 2026
@h-mayorquin
Copy link
Collaborator

Maybe we can add a test here:
https://gin.g-node.org/NeuralEnsemble/ephy_testing_data/pulls/169

@alejoe91 alejoe91 changed the title Propagate oebin file to read_openephys Update read_openephys and add OneBox tests Mar 18, 2026
@alejoe91 alejoe91 marked this pull request as ready for review March 18, 2026 11:49
@alejoe91 alejoe91 added this to the 0.104.0 milestone Mar 18, 2026
Copy link
Collaborator

@h-mayorquin h-mayorquin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I tested this with the branch SpikeInterface/probeinterface#409 and it workfor me

Let's merge the probeinterface PR and see that the tests pass.



def get_neuropixels_sample_shifts_from_probe(probe: Probe, stream_name: str = "ap") -> np.ndarray:
def get_neuropixels_sample_shifts_from_probe(probe: Probe) -> np.ndarray:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't this break for some people if they are using this function? if we think they are not should we make this private?

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

Labels

extractors Related to extractors module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants