Skip to content

Commit 7cfb574

Browse files
committed
Fix tests
1 parent f0d1761 commit 7cfb574

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/probeinterface/neuropixels_tools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,9 @@ def read_openephys(
14301430
pt_metadata, probe_part_number, elec_ids, shank_ids=shank_ids, mux_info=mux_info
14311431
)
14321432

1433+
if "channel_names" in np_probe_info:
1434+
probe.annotate_contacts(channel_name=np_probe_info["channel_names"])
1435+
14331436
chans_saved = get_saved_channel_indices_from_openephys_settings(settings_file, stream_name=stream_name)
14341437
if chans_saved is not None:
14351438
probe = probe.get_slice(chans_saved)
@@ -1446,8 +1449,6 @@ def read_openephys(
14461449
probe.annotate(port=np_probe_info["port"])
14471450
if "dock" in np_probe_info:
14481451
probe.annotate(dock=np_probe_info["dock"])
1449-
if "channel_names" in np_probe_info:
1450-
probe.annotate_contacts(channel_name=np_probe_info["channel_names"])
14511452

14521453
return probe
14531454

0 commit comments

Comments
 (0)