Skip to content

Commit

Permalink
use get_display_unit
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 committed Oct 4, 2024
1 parent b84ebec commit b1ea5af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jdaviz/configs/cubeviz/plugins/moment_maps/moment_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,7 @@ def moment_zero_unit(self):

@property
def spectral_unit_selected(self):
# NOTE: should we add this logic to app._get_display_unit?
unit_conv = self.app.get_tray_item_from_name('g-unit-conversion')
return unit_conv.spectral_unit.selected
return self.app._get_display_unit('spectral')

Check warning on line 344 in jdaviz/configs/cubeviz/plugins/moment_maps/moment_maps.py

View check run for this annotation

Codecov / codecov/patch

jdaviz/configs/cubeviz/plugins/moment_maps/moment_maps.py#L344

Added line #L344 was not covered by tests

def vue_calculate_moment(self, *args):
self.calculate_moment(add_data=True)
Expand Down

0 comments on commit b1ea5af

Please sign in to comment.