Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 2, 2023
1 parent 4ac26c7 commit 510fcc4
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions src/probeinterface/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def write_csv(file, probe):
"lf_gains",
"ap_hp_filters",
),
"x_shift": -11
"x_shift": -11,
},
# Neuropixels 2.0 - Single Shank - Prototype
"21": {
Expand All @@ -743,7 +743,7 @@ def write_csv(file, probe):
"ncol": 2,
"polygon": polygon_description["default"],
"fields_in_imro_table": ("channel_ids", "banks", "references", "elec_ids"),
"x_shift": -8
"x_shift": -8,
},
# Neuropixels 2.0 - Four Shank - Prototype
"24": {
Expand All @@ -763,7 +763,7 @@ def write_csv(file, probe):
"references",
"elec_ids",
),
"x_shift": -8
"x_shift": -8,
},
# Neuropixels 2.0 - Single Shank - Commercial without metal cap
"2003": {
Expand All @@ -777,7 +777,7 @@ def write_csv(file, probe):
"ncol": 2,
"polygon": polygon_description["default"],
"fields_in_imro_table": ("channel_ids", "banks", "references", "elec_ids"),
"x_shift": -8
"x_shift": -8,
},
# Neuropixels 2.0 - Single Shank - Commercial with metal cap
"2004": {
Expand All @@ -791,7 +791,7 @@ def write_csv(file, probe):
"ncol": 2,
"polygon": polygon_description["default"],
"fields_in_imro_table": ("channel_ids", "banks", "references", "elec_ids"),
"x_shift": -8
"x_shift": -8,
},
# Neuropixels 2.0 - Four Shank - Commercial without metal cap
"2013": {
Expand All @@ -811,7 +811,7 @@ def write_csv(file, probe):
"references",
"elec_ids",
),
"x_shift": -8
"x_shift": -8,
},
# Neuropixels 2.0 - Four Shank - Commercial with metal cap
"2014": {
Expand All @@ -831,7 +831,7 @@ def write_csv(file, probe):
"references",
"elec_ids",
),
"x_shift": -8
"x_shift": -8,
},
# Experimental probes previous to 1.0
"Phase3a": {
Expand All @@ -851,7 +851,7 @@ def write_csv(file, probe):
"ap_gains",
"lf_gains",
),
"x_shift": -11
"x_shift": -11,
},
# Neuropixels 1.0-NHP Short (10mm)
"1015": {
Expand All @@ -872,7 +872,7 @@ def write_csv(file, probe):
"lf_gains",
"ap_hp_filters",
),
"x_shift": -11
"x_shift": -11,
},
# Neuropixels 1.0-NHP Medium (25mm)
"1022": {
Expand All @@ -893,7 +893,7 @@ def write_csv(file, probe):
"lf_gains",
"ap_hp_filters",
),
"x_shift": -11
"x_shift": -11,
},
# Neuropixels 1.0-NHP 45mm SOI90 - NHP long 90um wide, staggered contacts
"1030": {
Expand All @@ -914,7 +914,7 @@ def write_csv(file, probe):
"lf_gains",
"ap_hp_filters",
),
"x_shift": -11
"x_shift": -11,
},
# Neuropixels 1.0-NHP 45mm SOI125 - NHP long 125um wide, staggered contacts
"1031": {
Expand All @@ -935,7 +935,7 @@ def write_csv(file, probe):
"lf_gains",
"ap_hp_filters",
),
"x_shift": -11
"x_shift": -11,
},
# 1.0-NHP 45mm SOI115 / 125 linear - NHP long 125um wide, linear contacts
"1032": {
Expand All @@ -956,7 +956,7 @@ def write_csv(file, probe):
"lf_gains",
"ap_hp_filters",
),
"x_shift": -11
"x_shift": -11,
},
# Ultra probe
"1100": {
Expand All @@ -977,7 +977,7 @@ def write_csv(file, probe):
"lf_gains",
"ap_hp_filters",
),
"x_shift": -8
"x_shift": -8,
},
# NP-Opto
"1300": {
Expand All @@ -998,7 +998,7 @@ def write_csv(file, probe):
"lf_gains",
"ap_hp_filters",
),
"x_shift": -11
"x_shift": -11,
},
}

Expand All @@ -1009,7 +1009,7 @@ def write_csv(file, probe):
"PRB_1_4_0480_1": "0",
"PRB_1_4_0480_1_C": "0",
"NP1010": "0",
None: "0", # for old version without a probe number we assume 1.0
None: "0", # for old version without a probe number we assume 1.0
# NHP probes
"NP1015": "1015",
"NP1022": "1022",
Expand All @@ -1025,10 +1025,11 @@ def write_csv(file, probe):
"NP2004": "2004",
"PRB2_1_2_0640_0": "21",
# Other probes
"NP1100": "1100", # Ultra probe
"NP1300": "1300", # Opto probe
"NP1100": "1100", # Ultra probe
"NP1300": "1300", # Opto probe
}


def read_imro(file_path: Union[str, Path]) -> Probe:
"""
Read probe position from the imro file used in input of SpikeGlx and Open-Ephys for neuropixels probes.
Expand Down

0 comments on commit 510fcc4

Please sign in to comment.