Skip to content
Merged
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
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ dev_*
cov.xml
.DS_Store


neuropixel_library_generated/*
uv.lock

# libraries
**/neuropixels_library_generated
**/cambridgeneurotech_library
2 changes: 1 addition & 1 deletion resources/generate_cambridgeneurotech_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
help="Path to the folder containing the CambridgeNeurotech probe tables CSV files from https://github.com/cambridge-neurotech/probe_maps",
)
parser.add_argument(
"--output-folder", type=str, default="./cambridgeneurotech", help="Output folder to save the generated probes"
"--output-folder", type=str, default="./cambridgeneurotech_library", help="Output folder to save the generated probes"
)


Expand Down
12 changes: 12 additions & 0 deletions src/probeinterface/neuropixels_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,18 @@ def _parse_openephys_settings(
else:
name = probe_names_used[probe_idx]

# For Quad Base probes, the stream name is the same for all 4 shanks,
# so we append the shank id to match the stream name (if not already present)
# and ensure consistency with stream names.
shank = np_probe.attrib.get("shank")
if shank is not None:
shank_str = f"-{int(shank) + 1}"
if shank_str not in name:
name = f"{name}{shank_str}"
# update the name in the probe_name_used so that the correct probe name
# shows up in the list of available probe names
probe_names_used[probe_idx] = name

info = {
"probe_part_number": probe_part_number,
"serial_number": probe_serial_number,
Expand Down
5,177 changes: 3,486 additions & 1,691 deletions tests/data/openephys/OE_Neuropix-PXI-QuadBase/settings_custom_names.xml

Large diffs are not rendered by default.

Loading
Loading