Skip to content

Conversation

@bparks13
Copy link
Member

@bparks13 bparks13 commented Oct 20, 2025

This PR was initially a part of #493; it has been split out into this PR as well so that we can review the underlying infrastructural changes independently of the addition of the single-shank Neuropixels 2.0 probes. This is prompted by #522, which would benefit from some of these changes but we do not need the single-shank probes for #522 to be implemented.

Below are the major highlights of this PR:

  • Add Neuropixels V2 probe info interfaces and implementations
  • Moved all probe-specific logic from the dialog to the info class in the Design library
  • Update all methods/classes to handle the abstract class, with easy scalability to add single-shank probes in the future
  • Add clone method for NeuropixelsV2eProbeGroup to ensure that dialogs can be exited without affecting settings
  • Update how the ChannelMap is accessed and utilized

@bparks13 bparks13 added this to the 0.7.0 milestone Oct 20, 2025
@bparks13 bparks13 requested a review from jonnew October 20, 2025 18:45
@bparks13 bparks13 self-assigned this Oct 20, 2025
@bparks13 bparks13 requested review from aacuevas and removed request for jonnew October 30, 2025 19:46
Copy link
Collaborator

@aacuevas aacuevas left a comment

Choose a reason for hiding this comment

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

I left a couple of comments, but there are other parts where these same comments are still true.
In short, while it is in general a good abstraction effort, there are some places where separation of responsibilities is broken and the general classes include switches of the specifics, which is not a good pattern.

@bparks13 bparks13 requested a review from aacuevas November 4, 2025 19:50
@bparks13
Copy link
Member Author

bparks13 commented Nov 4, 2025

@aacuevas I have updated the implementation as we discussed, and tested it out. There is no difference in behavior, but this is definitely a cleaner separation between responsibilities, and should translate well when I add in the single-shank probe. Let me know if this looks good, and I can rebase the other branch to make use of these changes.

- Add Neuropixels V2 probe info interfaces and implementations
- Moved all probe-specific logic from the dialog to the info class in the Design library
- Update all methods/classes to handle the abstract class, with easy scalability to add single-shank probes in the future
- Add clone method for NeuropixelsV2eProbeGroup to ensure that dialogs can be exited without affecting settings
- Update how the ChannelMap is accessed and utilized
@bparks13 bparks13 force-pushed the refactor-npx2-config branch from d37589c to 5db06c3 Compare November 7, 2025 21:58
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.

3 participants