Skip to content

NHP long probes (NP1020, NP1030) have incorrect probe_planar_contour height #388

@h-mayorquin

Description

@h-mayorquin

The probe_planar_contour for long NHP Neuropixels probes is incorrectly sized. The polygon height is hardcoded to ~10mm for all NHP probes, regardless of actual probe length.

Affected probes:

  • NP1020: contacts span 24,940 μm but contour is only 10,373 μm
  • NP1030: contacts span 44,140 μm but contour is only 10,373 μm

The issue is in the polygon_description dictionary which has fixed 10,000 μm heights for all neuropixels variants:

def get_probe_length(probe_part_number: str) -> int:
"""
Returns the length of a given probe. We assume a length of
1cm (10_000 microns) by default.
Parameters
----------
probe_part_number : str
The part number of the probe e.g. 'NP2013'.
Returns
-------
probe_length : int
Length of full probe (microns)
"""
probe_length = 10_000
return probe_length

Probably contour should scale with the actual probe length based on contact rows × y_pitch.

Check here:
https://h-mayorquin.github.io/apps/probe-viewer/#/probes/imec/NP1020?x=-86&y=-873&zoom=25.63&cx=182.5&cy=9806.2

This is not capture with the matplotlib version:
https://github.com/SpikeInterface/probeinterface_library/blob/main/imec/NP1020/NP1020.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions