Skip to content

Commit

Permalink
add args
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 committed Aug 15, 2024
1 parent d88a49b commit 8f5cf54
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,17 +317,19 @@ def _update_mark_scale(self, *args):

def _on_gloabl_display_unit_changed(self, msg={}):


if msg.axis == 'spectral_y':
self.spectrum_y_units = str(msg.unit)

# a 'flux' and 'sb' message should be recieved back to back from
# the unit conversion plugin, so don't need to sync them immediatley
# within each message recieved
if msg.axis == 'flux':
self.flux_unit = str(msg.unit)
if msg.axis == 'sb':
self.sb_unit = str(msg.unit)

@observe('function_selected')
def _update_units_on_function_selection(self):
def _update_units_on_function_selection(self, *args):

if self.function_selected.lower() == 'sum':
self.results_units = self.flux_unit
Expand Down

0 comments on commit 8f5cf54

Please sign in to comment.