Skip to content

Commit

Permalink
fix flux cube issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 committed Aug 9, 2024
1 parent d77d934 commit 42d5bae
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,14 @@ def _on_glue_y_display_unit_changed(self, y_unit_str):
)
self.hub.broadcast(GlobalDisplayUnitChanged("sb", self.sb_unit_selected, sender=self))

else:
# if cube was loaded in flux units, we still need to broadcast
# a 'sb' message for mouseover info. this should be removed when
# unit change messaging is improved and is a temporary fix
self.hub.broadcast(GlobalDisplayUnitChanged('sb',

Check warning on line 188 in jdaviz/configs/specviz/plugins/unit_conversion/unit_conversion.py

View check run for this annotation

Codecov / codecov/patch

jdaviz/configs/specviz/plugins/unit_conversion/unit_conversion.py#L188

Added line #L188 was not covered by tests
self.flux_unit.selected,
sender=self))

if not self.flux_unit.selected:
y_display_unit = self.spectrum_viewer.state.y_display_unit
self.flux_unit.selected = (str(u.Unit(y_display_unit * u.sr)))
Expand Down

0 comments on commit 42d5bae

Please sign in to comment.