File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -73,14 +73,18 @@ def test_NP2_4_shanks():
73
73
assert probe .get_shank_count () == 4
74
74
assert probe .get_contact_count () == 384
75
75
76
-
77
76
# Test contact geometry
78
77
contact_width = 12.0
79
78
contact_shape = "square"
80
79
81
80
assert np .all (probe .contact_shape_params == {"width" : contact_width })
82
81
assert np .all (probe .contact_shapes == contact_shape )
83
82
83
+ # This file does not save the channnels from 0 as the one above (NP2_4_shanks_g0_t0.imec0.ap.meta)
84
+ ypos = probe .contact_positions [:, 1 ]
85
+ assert np .min (ypos ) == pytest .approx (0 )
86
+
87
+
84
88
def test_NP2_4_shanks_with_different_electrodes_saved ():
85
89
# Data provided by Jennifer Colonell
86
90
probe = read_spikeglx (data_path / "NP2_4_shanks_save_different_electrodes.imec0.ap.meta" )
@@ -102,7 +106,8 @@ def test_NP2_4_shanks_with_different_electrodes_saved():
102
106
103
107
# This file does not save the channnels from 0 as the one above (NP2_4_shanks_g0_t0.imec0.ap.meta)
104
108
ypos = probe .contact_positions [:, 1 ]
105
- assert np .min (ypos ) == pytest .approx (4080.0 )
109
+ assert np .min (ypos ) == pytest .approx (2880.0 )
110
+ assert np .max (ypos ) == pytest .approx (5745.0 )
106
111
107
112
108
113
def test_NP1_large_depth_span ():
You can’t perform that action at this time.
0 commit comments