From 510fcc4a1d9521a6cad05a81dfc6068db0aa78c9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 2 Nov 2023 16:17:09 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/probeinterface/io.py | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/src/probeinterface/io.py b/src/probeinterface/io.py index 861ed35..f159c67 100644 --- a/src/probeinterface/io.py +++ b/src/probeinterface/io.py @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -956,7 +956,7 @@ def write_csv(file, probe): "lf_gains", "ap_hp_filters", ), - "x_shift": -11 + "x_shift": -11, }, # Ultra probe "1100": { @@ -977,7 +977,7 @@ def write_csv(file, probe): "lf_gains", "ap_hp_filters", ), - "x_shift": -8 + "x_shift": -8, }, # NP-Opto "1300": { @@ -998,7 +998,7 @@ def write_csv(file, probe): "lf_gains", "ap_hp_filters", ), - "x_shift": -11 + "x_shift": -11, }, } @@ -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", @@ -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.