Skip to content

Commit

Permalink
DBG: debug CI segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Oct 6, 2023
1 parent f253e13 commit 6fb5665
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jdaviz/configs/default/plugins/plot_options/plot_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,12 @@ def state_attr_for_line_visible(state):
'stretch_vmax_value', 'stretch_vmax_sync',
state_filter=is_image)

self.stretch_histogram = Plot(self, viewer_type='histogram')
self.stretch_histogram = Plot(self)#, viewer_type='histogram')
# NOTE: this is a current workaround so the histogram viewer doesn't crash when replacing
# data
self.stretch_histogram._add_data('ref', x=[0])
self.stretch_histogram.layers['ref'].state.visible = False
self.stretch_histogram._add_data('histogram', x=[0])
# self.stretch_histogram._add_data('ref', x=[0])
# self.stretch_histogram.layers['ref'].state.visible = False
# self.stretch_histogram._add_data('histogram', x=[0])

self.stretch_histogram.add_line('vmin', x=[0, 0], y=[0, 1], ynorm=True, color='#c75d2c')
self.stretch_histogram.add_line('vmax', x=[0, 0], y=[0, 1], ynorm=True, color='#c75d2c')
Expand Down

0 comments on commit 6fb5665

Please sign in to comment.