Skip to content

Commit d80b8b0

Browse files
committed
fix tests
1 parent 244749b commit d80b8b0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/test_io/test_spikeglx.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,18 @@ def test_NP2_4_shanks():
7373
assert probe.get_shank_count() == 4
7474
assert probe.get_contact_count() == 384
7575

76-
7776
# Test contact geometry
7877
contact_width = 12.0
7978
contact_shape = "square"
8079

8180
assert np.all(probe.contact_shape_params == {"width": contact_width})
8281
assert np.all(probe.contact_shapes == contact_shape)
8382

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+
8488
def test_NP2_4_shanks_with_different_electrodes_saved():
8589
# Data provided by Jennifer Colonell
8690
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():
102106

103107
# This file does not save the channnels from 0 as the one above (NP2_4_shanks_g0_t0.imec0.ap.meta)
104108
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)
106111

107112

108113
def test_NP1_large_depth_span():

0 commit comments

Comments
 (0)