Skip to content

Commit

Permalink
debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Jul 17, 2024
1 parent 335c81d commit 70fa119
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/pynwb/ndx_microscopy/testing/_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
)
Expand All @@ -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:
Expand All @@ -109,14 +109,15 @@ 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,
)
return volumetric_imaging_space


def mock_MicroscopySegmentations(
*,
name: Optional[str] = None,
microscopy_plane_segmentations: Optional[Iterable[ndx_microscopy.MicroscopyPlaneSegmentation]] = None,
) -> ndx_microscopy.MicroscopySegmentations:
Expand All @@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion src/pynwb/tests/test_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 70fa119

Please sign in to comment.