Skip to content

Commit

Permalink
Fix style 2
Browse files Browse the repository at this point in the history
  • Loading branch information
javerbukh committed Mar 26, 2024
1 parent 8059112 commit 46df226
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jdaviz/configs/cubeviz/plugins/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from glue.core.subset_group import GroupedSubset
from bqplot import Lines
from glue_jupyter.bqplot.image import BqplotImageView
from specutils import Spectrum1D

from jdaviz.core.registries import viewer_registry
from jdaviz.core.marks import SliceIndicatorMarks, ShadowSpatialSpectral
Expand Down Expand Up @@ -86,7 +85,7 @@ def slice_values(self):
to(display_spectral_units).value, dtype=float))
else:
data_obj = layer.layer.data.get_component(self.slice_component_label).data
converted_axis = np.asarray(data_obj.take(0, take_inds[0]).take(0, take_inds[1]),
converted_axis = np.asarray(data_obj.take(0, take_inds[0]).take(0, take_inds[1]), # noqa
dtype=float)
except (AttributeError, KeyError):
continue
Expand Down

0 comments on commit 46df226

Please sign in to comment.