Skip to content

Conversation

@bparks13
Copy link
Member

@bparks13 bparks13 commented Sep 8, 2025

This PR is now targeting #523 as its base branch; the refactor of the Neuropixels V2 classes are now in that branch, and all single-shank specific changes are enclosed here.

  • Update shift register bit setting for single-shank probes
  • Add combo box to the 2.0 GUIs allowing the user to change the probe type
  • Instead of reverting to the default settings for a probe type if the user switches types, hold both configurations in memory and swap between them so that the user does not lose any configurations accidentally

Fixes #446

View of the editor:
image

The properties will not appear different to the user, but on the backend the type has changed. This does not affect old versions being loaded, as the type is not recorded in the XML file, only the name and the properties.

Example GIF: Changing Probe Type Manually
issue-446

In the above GIF, we can see how the user will interact with changing the probe type, and how it affects the drop-down menus for the reference and electrode presets.

Example GIF: Loading Saved Files and Loading Default Configuration
load-files-and-default

This example shows how the user can load a saved file (either single- or quad-shank); it gives a warning if the current probe type does not match the incoming type, but does allow the user to continue if they wish. If the types match then no warning is given.

The default configuration is based on the selected probe type.

Testing Required

I do not have access to a single-shank Neuropixels 2.0 probe, so this will need to be tested with one of those probes before we can merge this PR.

- Update shift register bit setting for single-shank probes
- Add combo box to the 2.0 GUIs allowing the user to change the probe type
- Instead of reverting to the default settings for a probe type if the user switches types, hold both configurations in memory and swap between them so that the user does not lose any configurations accidentally
@bparks13 bparks13 requested a review from anjaldoshi October 20, 2025 19:29
@bparks13 bparks13 requested review from aacuevas and removed request for jonnew October 30, 2025 19:43
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.

Add support for single-shank NP 2.0 probes

2 participants