From da3a74f45c713cda929f391f13e4295e9735a896 Mon Sep 17 00:00:00 2001 From: payno Date: Thu, 31 Oct 2024 13:27:11 +0100 Subject: [PATCH] silx.gui.plot.ImageStack: fix initialization of '_urlIndexes'. Should always be a dict --- src/silx/gui/plot/ImageStack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/silx/gui/plot/ImageStack.py b/src/silx/gui/plot/ImageStack.py index 175d6e438d..6ca82955be 100644 --- a/src/silx/gui/plot/ImageStack.py +++ b/src/silx/gui/plot/ImageStack.py @@ -242,7 +242,7 @@ def reset(self) -> None: """Clear the plot and remove any link to url""" self._freeLoadingThreads() self._urls = None - self._urlIndexes = None + self._urlIndexes = {} self._urlData = {} self._current_url = None self._plot.clear()