diff --git a/CHANGELOG.md b/CHANGELOG.md index d0fbf11ed..7d95d8b49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ ### Documentation and tutorial enhancements - Updated `SpikeEventSeries`, `DecompositionSeries`, and `FilteredEphys` examples. @stephprince [#2012](https://github.com/NeurodataWithoutBorders/pynwb/pull/2012) +- Replaced deprecated `scipy.misc.face` dataset in the images tutorial with another example. @stephprince [#2016](https://github.com/NeurodataWithoutBorders/pynwb/pull/2016) ## PyNWB 2.8.3 (November 19, 2024) diff --git a/docs/gallery/domain/images.py b/docs/gallery/domain/images.py index a6821d11a..294566680 100644 --- a/docs/gallery/domain/images.py +++ b/docs/gallery/domain/images.py @@ -296,30 +296,14 @@ # :py:class:`~pynwb.image.IndexSeries` that indexes into the # :py:class:`~pynwb.base.Images`. -from scipy import datasets - from pynwb.base import ImageReferences from pynwb.image import GrayscaleImage, Images, IndexSeries, RGBImage -gs_face = GrayscaleImage( - name="gs_face", - data=datasets.face(gray=True), - description="Grayscale version of a raccoon.", - resolution=35.433071, -) - -rgb_face = RGBImage( - name="rgb_face", - data=datasets.face(), - resolution=70.0, - description="RGB version of a raccoon.", -) - images = Images( name="raccoons", - images=[rgb_face, gs_face], + images=[rgb_logo, gs_logo], description="A collection of raccoons.", - order_of_images=ImageReferences("order_of_images", [rgb_face, gs_face]), + order_of_images=ImageReferences("order_of_images", [rgb_logo, gs_logo]), ) idx_series = IndexSeries( diff --git a/docs/source/conf.py b/docs/source/conf.py index c10aed355..556f0c38f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -147,7 +147,7 @@ def __call__(self, filename): 'fsspec': ("https://filesystem-spec.readthedocs.io/en/latest/", None), 'nwbwidgets': ("https://nwb-widgets.readthedocs.io/en/latest/", None), 'nwb-overview': ("https://nwb-overview.readthedocs.io/en/latest/", None), - 'zarr': ("https://zarr.readthedocs.io/en/stable/", None), + 'zarr': ("https://zarr.readthedocs.io/en/v2.18.4/", None), # TODO - update when hdmf-zarr supports Zarr 3.0 'hdmf-zarr': ("https://hdmf-zarr.readthedocs.io/en/stable/", None), 'numcodecs': ("https://numcodecs.readthedocs.io/en/latest/", None), }