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 5ac7eef commit 7effd8e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/pynwb/ndx_microscopy/testing/_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ def mock_MicroscopySegmentations(
microscopy_plane_segmentations: Optional[Iterable[ndx_microscopy.MicroscopyPlaneSegmentation]] = None,
) -> ndx_microscopy.MicroscopySegmentations:
name = name or name_generator("MicroscopySegmentations")
microscopy_plane_segmentations = microscopy_plane_segmentations or [mock_MicroscopyPlaneSegmentation()]

microscope = mock_Microscope()
imaging_space = mock_PlanarImagingSpace(microscope=microscope)
microscopy_plane_segmentations = microscopy_plane_segmentations or [
mock_MicroscopyPlaneSegmentation(imaging_space=imaging_space)
]

segmentations = ndx_microscopy.MicroscopySegmentations(
name=name, microscopy_plane_segmentations=microscopy_plane_segmentations
Expand All @@ -142,11 +147,15 @@ def mock_MicroscopyPlaneSegmentation(
name = name or name_generator("MicroscopyPlaneSegmentation")

plane_segmentation = ndx_microscopy.MicroscopyPlaneSegmentation(
name=name, description=description, imaging_space=imaging_space
name=name,
description=description,
imaging_space=imaging_space,
)

image_masks = list()
for _ in range(number_of_rois):
plane_segmentation.add_roi(image_mask=np.zeros(image_shape, dtype=bool))
image_masks.append(np.zeros(image_shape, dtype=bool))
plane_segmentation.add_column(name="image_mask", description="", data=image_masks)

return plane_segmentation

Expand Down

0 comments on commit 7effd8e

Please sign in to comment.