diff --git a/jdaviz/app.py b/jdaviz/app.py index 1a75856699..875463e9bc 100644 --- a/jdaviz/app.py +++ b/jdaviz/app.py @@ -1275,8 +1275,9 @@ def merge_func(spectral_region): # noop def _get_display_unit(self, axis): if self._jdaviz_helper is None: - # cannot access either the plugin or the spectrum viewer. Plugins that access the unit at this point - # will need to detect that they are set to unitless and attempt again later. + # cannot access either the plugin or the spectrum viewer. + # Plugins that access the unit at this point will need to + # detect that they are set to unitless and attempt again later. return '' elif self._jdaviz_helper.plugins.get('Unit Conversion') is None: # noqa # fallback on native units (unit conversion is not enabled) diff --git a/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py b/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py index eaf18b9ade..3d4bd9d6f5 100644 --- a/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py +++ b/jdaviz/configs/cubeviz/plugins/spectral_extraction/spectral_extraction.py @@ -546,9 +546,8 @@ def _preview_x_from_extracted(self, extracted): def _preview_y_from_extracted(self, extracted): # TODO: use extracted's PIXAR_SR instead (but for some reason isn't populated here...) - #print(f"*** _preview_y_from_extracted {extracted.flux.unit} > {self.spectrum_y_units}") return extracted.flux.to_value(self.spectrum_y_units, - equivalencies=_eqv_pixar_sr(self.dataset.selected_obj.meta.get('PIXAR_SR', 1.0))) + equivalencies=_eqv_pixar_sr(self.dataset.selected_obj.meta.get('PIXAR_SR', 1.0))) # noqa: @with_spinner() def extract(self, return_bg=False, add_data=True, **kwargs): @@ -736,7 +735,9 @@ def _clear_marks(self): 'previews_temp_disabled') def _live_update_marks(self, event={}): if self.spectrum_y_units == '': - # ensure that units are populated (which in turn will make a call back here from the observe on spectrum_y_units) + # ensure that units are populated + # which in turn will make a call back here + # from the observe on spectrum_y_units self._on_global_display_unit_changed(None) return self._update_marks(event)