diff --git a/src/pynwb/tests/test_optogenetics.py b/src/pynwb/tests/test_optogenetics.py index 552bc8a..9e4a12e 100644 --- a/src/pynwb/tests/test_optogenetics.py +++ b/src/pynwb/tests/test_optogenetics.py @@ -65,7 +65,9 @@ def test_roundtrip(self): theta_filter_reference_ntrode=1, spatial_filter_on=True, spatial_filter_lockout_period_in_samples=10, - spatial_filter_region_node_coordinates_in_pixels=((260, 920), (800, 1050)), + # below is an example of a single rectangular spatial filter region defined by the pixel coordinates of the + # four corners + spatial_filter_region_node_coordinates_in_pixels=(((260, 920), (260, 800), (800, 1050), (800, 920)), ), spatial_filter_cameras=[camera1, camera2], spatial_filter_cameras_cm_per_pixel=[0.3, 0.18], ripple_filter_on=True, @@ -113,7 +115,7 @@ def test_roundtrip(self): assert read_epochs[0, "spatial_filter_lockout_period_in_samples"] == 10 assert np.array_equal( read_epochs[0, "spatial_filter_region_node_coordinates_in_pixels"], - np.array([[260, 920], [800, 1050]]), + np.array((((260, 920), (260, 800), (800, 1050), (800, 920)), )), ) assert read_epochs[0, "spatial_filter_cameras"] == [read_camera1, read_camera2] assert all(read_epochs[0, "spatial_filter_cameras_cm_per_pixel"] == [0.3, 0.18])