@@ -38,7 +38,9 @@ def _assert_contact_ids_match_canonical_pattern(probe, label=""):
3838### TESTS ###
3939def test_NP2_OE_1_0 ():
4040 # NP2 1-shank
41- probeA = read_openephys_neuropixels (data_path / "OE_1.0_Neuropix-PXI-multi-probe" / "settings.xml" , probe_name = "ProbeA" )
41+ probeA = read_openephys_neuropixels (
42+ data_path / "OE_1.0_Neuropix-PXI-multi-probe" / "settings.xml" , probe_name = "ProbeA"
43+ )
4244 probe_dict = probeA .to_dict (array_as_list = True )
4345 validate_probe_dict (probe_dict )
4446 assert probeA .get_shank_count () == 1
@@ -101,7 +103,9 @@ def test_probe_part_number_mismatch_with_catalogue():
101103
102104def test_NP1_subset ():
103105 # NP1 - 200 channels selected by recording_state in Record Node
104- probe_ap = read_openephys_neuropixels (data_path / "OE_Neuropix-PXI-subset" / "settings.xml" , stream_name = "ProbeA-AP" )
106+ probe_ap = read_openephys_neuropixels (
107+ data_path / "OE_Neuropix-PXI-subset" / "settings.xml" , stream_name = "ProbeA-AP"
108+ )
105109 probe_dict = probe_ap .to_dict (array_as_list = True )
106110 validate_probe_dict (probe_dict )
107111
@@ -111,7 +115,9 @@ def test_NP1_subset():
111115 assert "adc_group" in probe_ap .contact_annotations
112116 assert "adc_sample_order" in probe_ap .contact_annotations
113117
114- probe_lf = read_openephys_neuropixels (data_path / "OE_Neuropix-PXI-subset" / "settings.xml" , stream_name = "ProbeA-LFP" )
118+ probe_lf = read_openephys_neuropixels (
119+ data_path / "OE_Neuropix-PXI-subset" / "settings.xml" , stream_name = "ProbeA-LFP"
120+ )
115121 probe_dict = probe_lf .to_dict (array_as_list = True )
116122 validate_probe_dict (probe_dict )
117123
@@ -492,7 +498,9 @@ def test_read_openephys_contact_ids_match_canonical_pattern():
492498 (see https://github.com/SpikeInterface/probeinterface/pull/383#discussion_r2650588006).
493499 """
494500 # Path A (SELECTED_ELECTRODES): OE 1.0 dataset
495- probe = read_openephys_neuropixels (data_path / "OE_1.0_Neuropix-PXI-multi-probe" / "settings.xml" , probe_name = "ProbeA" )
501+ probe = read_openephys_neuropixels (
502+ data_path / "OE_1.0_Neuropix-PXI-multi-probe" / "settings.xml" , probe_name = "ProbeA"
503+ )
496504 _assert_contact_ids_match_canonical_pattern (probe , "OE_1.0 ProbeA" )
497505
498506 # Path B (CHANNELS): NP2 dataset (single shank)
@@ -532,7 +540,9 @@ def test_read_openephys_contact_ids_match_canonical_pattern():
532540
533541 # QuadBase: NP2020 (4 probes)
534542 for i in range (4 ):
535- probe = read_openephys_neuropixels (data_path / "OE_Neuropix-PXI-QuadBase" / "settings.xml" , probe_name = f"ProbeC-{ i + 1 } " )
543+ probe = read_openephys_neuropixels (
544+ data_path / "OE_Neuropix-PXI-QuadBase" / "settings.xml" , probe_name = f"ProbeC-{ i + 1 } "
545+ )
536546 _assert_contact_ids_match_canonical_pattern (probe , f"QuadBase ProbeC-{ i + 1 } " )
537547
538548
@@ -731,8 +741,7 @@ def test_has_neuropixels_probes_negative(tmp_path):
731741 # A settings.xml with only a non-Neuropixels processor (e.g. Rhythm FPGA / Intan)
732742 # must return False. This is the routing case that motivates the helper.
733743 settings = tmp_path / "settings.xml"
734- settings .write_text (
735- """<?xml version="1.0"?>
744+ settings .write_text ("""<?xml version="1.0"?>
736745<SETTINGS>
737746 <INFO><VERSION>0.6.0</VERSION></INFO>
738747 <SIGNALCHAIN>
@@ -741,8 +750,7 @@ def test_has_neuropixels_probes_negative(tmp_path):
741750 </PROCESSOR>
742751 </SIGNALCHAIN>
743752</SETTINGS>
744- """
745- )
753+ """ )
746754 assert has_neuropixels_probes (settings ) is False
747755
748756
0 commit comments