@@ -98,9 +98,9 @@ def test_process_ophys_plane_timestamps(
9898 np .arange (5 ), does_not_raise ()),
9999 (None , np .arange (10 ), np .arange (20 ).reshape (1 , 20 ),
100100 None , pytest .raises (RuntimeError )),
101- (2 , np .arange (10 ), np .arange (10 ).reshape (1 , 10 ),
102- np .arange (10 ), does_not_raise ()),
103- (2 , np .arange (10 ), np .arange (5 ).reshape (1 , 5 ),
101+ (0 , np .arange (10 ), np .arange (5 ).reshape (1 , 5 ),
102+ np .arange (0 , 10 , 2 ), does_not_raise ()),
103+ (0 , np .arange (20 ), np .arange (5 ).reshape (1 , 5 ),
104104 None , pytest .raises (RuntimeError ))
105105 ],
106106 ids = ["scientifica-trunate" , "scientifica-raise" , "mesoscope-good" ,
@@ -117,10 +117,8 @@ def test_get_ophys_timestamps(monkeypatch, plane_group, ophys_timestamps,
117117 lambda : {"ophys_frames" : ophys_timestamps })
118118 monkeypatch .setattr (api , "get_raw_dff_data" , lambda : dff_traces )
119119 monkeypatch .setattr (api , "get_imaging_plane_group" , lambda : plane_group )
120- monkeypatch .setattr (api , "_process_ophys_plane_timestamps" ,
121- lambda * x : ophys_timestamps )
122- monkeypatch .setattr (api , "get_plane_group_count" , lambda : 4 )
120+ monkeypatch .setattr (api , "get_plane_group_count" , lambda : 2 )
123121 with context :
124122 actual = api .get_ophys_timestamps ()
125123 if expected is not None :
126- np .testing .assert_array_equal (expected , actual )
124+ np .testing .assert_array_equal (expected , actual )
0 commit comments