Skip to content

Commit 03027ac

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

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/probeinterface/neuropixels_tools.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ def _make_npx_probe_from_description(probe_description, model_name, elec_ids, sh
271271
positions = np.stack((x_pos, y_pos), axis=1)
272272

273273
# construct Probe object
274-
probe = Probe(ndim=2, si_units="um", model_name=model_name, manufacturer="imec", name=probe_description["description"])
274+
probe = Probe(
275+
ndim=2, si_units="um", model_name=model_name, manufacturer="imec", name=probe_description["description"]
276+
)
275277
probe.set_contacts(
276278
positions=positions,
277279
shapes="square",
@@ -281,7 +283,6 @@ def _make_npx_probe_from_description(probe_description, model_name, elec_ids, sh
281283

282284
probe.set_contact_ids(contact_ids)
283285

284-
285286
# Add planar contour
286287
polygon = np.array(
287288
get_probe_contour_vertices(
@@ -1055,7 +1056,9 @@ def read_openephys(
10551056
if elec_ids is not None:
10561057
elec_ids = np.array(elec_ids)[chans_saved]
10571058

1058-
probe = _make_npx_probe_from_description(pt_metadata, probe_part_number, elec_ids, shank_ids=shank_ids, mux_table=mux_table)
1059+
probe = _make_npx_probe_from_description(
1060+
pt_metadata, probe_part_number, elec_ids, shank_ids=shank_ids, mux_table=mux_table
1061+
)
10591062
probe.serial_number = np_probe_info["serial_number"]
10601063

10611064
probe.annotate(

0 commit comments

Comments
 (0)