From 30a4707665dc52d2e9d30424a68f0fd8125f3252 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Fri, 26 Apr 2024 12:05:57 +0100 Subject: [PATCH] Fix case where data is not a Numpy array --- jdaviz/core/template_mixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdaviz/core/template_mixin.py b/jdaviz/core/template_mixin.py index 8ac276fa09..67b2886e9e 100644 --- a/jdaviz/core/template_mixin.py +++ b/jdaviz/core/template_mixin.py @@ -4634,7 +4634,7 @@ def _update_data(self, label, reset_lims=False, **kwargs): shape_mismatch = False for component in self._viewer_components: kwargs.setdefault(component, data[component]) - if kwargs[component].shape != data[component].shape: + if np.asarray(kwargs[component]).shape != data[component].shape: shape_mismatch = True if not shape_mismatch: