Skip to content

Commit 2c77e9b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent aa3e2aa commit 2c77e9b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/probeinterface/neuropixels_tools.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,9 @@ def build_neuropixels_probe(probe_part_number: str) -> Probe:
417417

418418
# ===== 4. Calculate contact IDs =====
419419
shank_ids_iter = shank_ids if shank_ids is not None else [None] * len(elec_ids)
420-
contact_ids = [_build_canonical_contact_id(elec_id, shank_id) for shank_id, elec_id in zip(shank_ids_iter, elec_ids)]
420+
contact_ids = [
421+
_build_canonical_contact_id(elec_id, shank_id) for shank_id, elec_id in zip(shank_ids_iter, elec_ids)
422+
]
421423

422424
# ===== 5. Create Probe object and set contacts =====
423425
probe = Probe(ndim=2, si_units="um", model_name=probe_part_number, manufacturer="imec")
@@ -838,8 +840,7 @@ def read_spikeglx(file: str | Path) -> Probe:
838840
imro_electrode = imro_per_channel["electrode"]
839841
imro_shank = imro_per_channel.get("shank", [None] * len(imro_electrode))
840842
active_contact_ids = [
841-
_build_canonical_contact_id(elec_id, shank_id)
842-
for shank_id, elec_id in zip(imro_shank, imro_electrode)
843+
_build_canonical_contact_id(elec_id, shank_id) for shank_id, elec_id in zip(imro_shank, imro_electrode)
843844
]
844845

845846
# ===== 5. Slice full probe to active electrodes =====

0 commit comments

Comments
 (0)