Skip to content

Commit

Permalink
Fix case where data is not a Numpy array
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed May 7, 2024
1 parent b814828 commit 30a4707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdaviz/core/template_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 30a4707

Please sign in to comment.