Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Apr 17, 2024
1 parent bc26685 commit 855429a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions glue_jupyter/bqplot/image/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class BqplotImageLayerState(ImageLayerState):
contour_visible = CallbackProperty(False, 'whether to show the image as contours')

def __init__(self, *args, **kwargs):

super(BqplotImageLayerState, self).__init__(*args, **kwargs)

BqplotImageLayerState.level_mode.set_choices(self, ['Linear', 'Custom'])
Expand All @@ -49,12 +50,6 @@ def __init__(self, *args, **kwargs):
percentile='contour_percentile',
lower='c_min', upper='c_max')

def format_unit(unit):
if unit is None:
return 'Native units'
else:
return unit

self.add_callback('n_levels', self._update_levels)
self.add_callback('c_min', self._update_levels)
self.add_callback('c_max', self._update_levels)
Expand Down

0 comments on commit 855429a

Please sign in to comment.