Skip to content

Commit

Permalink
Adjust constructor test to match
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Jul 11, 2024
1 parent 7a7ae66 commit 4a6444a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
20 changes: 16 additions & 4 deletions src/pynwb/tests/test_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import pytest

import pynwb
from ndx_microscopy.testing import (
mock_Microscope,
mock_MicroscopyLightSource,
Expand Down Expand Up @@ -74,15 +75,26 @@ def test_constructor_volumetric_microscopy_series():

def test_constructor_multi_channel_microscopy_volume():
microscope = mock_Microscope()
light_source = mock_MicroscopyLightSource()
imaging_space = mock_VolumetricImagingSpace(microscope=microscope)
optical_channel = mock_MicroscopyOpticalChannel()
light_sources = [mock_MicroscopyLightSource()]
optical_channels = [mock_MicroscopyOpticalChannel()]

light_sources_used_by_volume = pynwb.base.VectorData(
name="light_sources", description="Light sources used by this MultiChannelVolume.", data=light_sources
)
optical_channels_used_by_volume = pynwb.base.VectorData(
name="optical_channels",
description=(
"Optical channels ordered to correspond to the third axis (e.g., [0, 0, :, 0]) "
"of the data for this MultiChannelVolume."
),
data=optical_channels,
)
mock_MultiChannelMicroscopyVolume(
microscope=microscope,
imaging_space=imaging_space,
light_sources=[light_source],
optical_channels=[optical_channel],
light_sources=light_sources_used_by_volume,
optical_channels=optical_channels_used_by_volume,
)


Expand Down
5 changes: 4 additions & 1 deletion src/pynwb/tests/test_roundtrip.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ def test_roundtrip(self):
)
optical_channels_used_by_volume = pynwb.base.VectorData(
name="optical_channels",
description="Optical channels ordered to correspond to the third axis (e.g., [0, 0, :, 0]) of the data for this MultiChannelVolume.",
description=(
"Optical channels ordered to correspond to the third axis (e.g., [0, 0, :, 0]) "
"of the data for this MultiChannelVolume."
),
data=optical_channels,
)
multi_channel_microscopy_volume = mock_MultiChannelMicroscopyVolume(
Expand Down

0 comments on commit 4a6444a

Please sign in to comment.