Skip to content

Commit

Permalink
Update image.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Sep 20, 2024
1 parent f0b3f08 commit 48e1466
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/pynwb/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ def __init__(self, **kwargs):
@register_class('ImageMaskSeries', CORE_NAMESPACE)
class ImageMaskSeries(ImageSeries):
'''
DEPRECATED. An alpha mask that is applied to a presented visual stimulus. The data[] array contains an array
DEPRECATED as of NWB 2.8.0 and PyNWB 3.0.0.
An alpha mask that is applied to a presented visual stimulus. The data[] array contains an array
of mask values that are applied to the displayed image. Mask values are stored as RGBA. Mask
can vary with time. The timestamps array indicates the starting time of a mask, and that mask
pattern continues until it's explicitly changed.
Expand All @@ -299,13 +300,14 @@ class ImageMaskSeries(ImageSeries):
'The device used to capture the masked ImageSeries data should be stored in the ImageSeries.'),
'default': None},)
def __init__(self, **kwargs):
raise ValueError(
"This neurodata type is deprecated. If you are interested in using it, "
"please create an issue on https://github.com/NeurodataWithoutBorders/nwb-schema/issues."
)
# masked_imageseries = popargs('masked_imageseries', kwargs)
# super().__init__(**kwargs)
# self.masked_imageseries = masked_imageseries
if not self._in_construct_mode:
raise ValueError(
"The ImageMaskSeries neurodata type is deprecated. If you are interested in using it, "
"please create an issue on https://github.com/NeurodataWithoutBorders/nwb-schema/issues."
)
masked_imageseries = popargs('masked_imageseries', kwargs)
super().__init__(**kwargs)
self.masked_imageseries = masked_imageseries


@register_class('OpticalSeries', CORE_NAMESPACE)
Expand Down

0 comments on commit 48e1466

Please sign in to comment.