From ca39d923028ef4c5cc18f230964c6fec1a7c82a2 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Fri, 8 Mar 2024 09:00:25 -0500 Subject: [PATCH] allow initializing when slice axis is pixel --- jdaviz/configs/cubeviz/plugins/slice/slice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdaviz/configs/cubeviz/plugins/slice/slice.py b/jdaviz/configs/cubeviz/plugins/slice/slice.py index 2d3a05b47e..dea6f06be1 100644 --- a/jdaviz/configs/cubeviz/plugins/slice/slice.py +++ b/jdaviz/configs/cubeviz/plugins/slice/slice.py @@ -97,7 +97,7 @@ def __init__(self, *args, **kwargs): self._initialize_location() def _initialize_location(self, *args): - # intitialize value_unit (this has to wait until data is loaded to an existing + # initialize value_unit (this has to wait until data is loaded to an existing # slice_indicator_viewer, so we'll keep trying until it is set - after that, changes # will be handled by a change to global display units) if not self.value_unit: @@ -133,7 +133,7 @@ def slice_axis(self): @property def valid_slice_att_names(self): - return _spectral_axis_names + return _spectral_axis_names + ['Pixel Axis 2 [x]'] @property def slice_selection_viewers(self):