Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/probeinterface/neuropixels_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ def read_spikeglx(file: str | Path) -> Probe:
probe.annotate(part_number=imDatPrb_pn)
probe.annotate(port=imDatPrb_port)
probe.annotate(slot=imDatPrb_slot)
probe.annotate(probe_type=probe_part_number_to_probe_type.get(imDatPrb_pn))

# ===== 8. Set device channel indices (wiring) =====
probe.set_device_channel_indices(np.arange(probe.get_contact_count()))
Expand Down
1 change: 1 addition & 0 deletions tests/test_io/test_spikeglx.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def test_NP1():
assert "1.0" in probe.description
assert "adc_group" in probe.contact_annotations
assert "adc_sample_order" in probe.contact_annotations
assert probe.annotations.get("probe_type") == "0"


def test_NP_phase3A():
Expand Down
Loading