From 70fa119404a781721f4faab4b467f3648121e6d6 Mon Sep 17 00:00:00 2001 From: codycbakerphd Date: Wed, 17 Jul 2024 15:48:52 -0400 Subject: [PATCH] debugs --- src/pynwb/ndx_microscopy/testing/_mock.py | 10 ++++++---- src/pynwb/tests/test_constructors.py | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/pynwb/ndx_microscopy/testing/_mock.py b/src/pynwb/ndx_microscopy/testing/_mock.py index 14c8741..ff8bb4d 100644 --- a/src/pynwb/ndx_microscopy/testing/_mock.py +++ b/src/pynwb/ndx_microscopy/testing/_mock.py @@ -78,7 +78,7 @@ def mock_PlanarImagingSpace( name: Optional[str] = None, description: str = "This is a mock instance of a PlanarImagingSpace type to be used for rapid testing.", origin_coordinates: Tuple[float, float, float] = (-1.2, -0.6, -2), - grid_spacing: Tuple[float, float, float] = (0.2, 0.2), + grid_spacing_in_mm: Tuple[float, float, float] = (0.2, 0.2), location: str = "The location targeted by the mock imaging space.", reference_frame: str = "The reference frame of the mock planar imaging space.", ) -> ndx_microscopy.PlanarImagingSpace: @@ -87,7 +87,7 @@ def mock_PlanarImagingSpace( description=description, microscope=microscope, origin_coordinates=origin_coordinates, - grid_spacing=grid_spacing, + grid_spacing_in_mm=grid_spacing_in_mm, location=location, reference_frame=reference_frame, ) @@ -100,7 +100,7 @@ def mock_VolumetricImagingSpace( name: Optional[str] = None, description: str = "This is a mock instance of a VolumetricImagingSpace type to be used for rapid testing.", origin_coordinates: Tuple[float, float, float] = (-1.2, -0.6, -2), - grid_spacing: Tuple[float, float, float] = (0.2, 0.2, 0.5), + grid_spacing_in_mm: Tuple[float, float, float] = (0.2, 0.2, 0.5), location: str = "The location targeted by the mock imaging space.", reference_frame: str = "The reference frame of the mock volumetric imaging space.", ) -> ndx_microscopy.VolumetricImagingSpace: @@ -109,7 +109,7 @@ def mock_VolumetricImagingSpace( description=description, microscope=microscope, origin_coordinates=origin_coordinates, - grid_spacing=grid_spacing, + grid_spacing_in_mm=grid_spacing_in_mm, location=location, reference_frame=reference_frame, ) @@ -117,6 +117,7 @@ def mock_VolumetricImagingSpace( def mock_MicroscopySegmentations( + *, name: Optional[str] = None, microscopy_plane_segmentations: Optional[Iterable[ndx_microscopy.MicroscopyPlaneSegmentation]] = None, ) -> ndx_microscopy.MicroscopySegmentations: @@ -131,6 +132,7 @@ def mock_MicroscopySegmentations( def mock_MicroscopyPlaneSegmentation( + *, imaging_space: ndx_microscopy.ImagingSpace, name: Optional[str] = None, description: str = "This is a mock instance of a MicroscopyPlaneSegmentation type to be used for rapid testing.", diff --git a/src/pynwb/tests/test_constructors.py b/src/pynwb/tests/test_constructors.py index b1a2ab7..af884f5 100644 --- a/src/pynwb/tests/test_constructors.py +++ b/src/pynwb/tests/test_constructors.py @@ -129,7 +129,7 @@ def test_constructor_multi_channel_microscopy_volume(): def test_constructor_variable_depth_multi_channel_microscopy_volume(): microscope = mock_Microscope() - light_source = mock_LightSource() + light_source = mock_MicroscopyLightSource() imaging_space = mock_VolumetricImagingSpace(microscope=microscope) optical_channel = mock_MicroscopyOpticalChannel()