Skip to content

Commit

Permalink
use unique cell_id values in resetLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
stargaser committed Mar 1, 2019
1 parent c705bf9 commit a4f988a
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions python/lsst/display/firefly/firefly.py
Expand Up @@ -522,12 +522,25 @@ def resetLayout(self):
plot area in upper right, and plots stretch across the bottom
"""
self.clearViewer()
try:
tables_cell_id = 'tables-' + str(_fireflyClient.render_tree_id)
except AttributeError:
tables_cell_id = 'tables'
self._client.add_cell(row=2, col=0, width=4, height=2, element_type='tables',
cell_id='tables')
cell_id=tables_cell_id)
try:
image_cell_id = ('image-' + str(_fireflyClient.render_tree_id) + '-' +
str(self.frame))
except AttributeError:
image_cell_id = 'image-' + str(self.frame)
self._client.add_cell(row=0, col=0, width=2, height=3, element_type='images',
cell_id='image-%s' % str(self.display.frame))
cell_id=image_cell_id)
try:
plots_cell_id = 'plots-' + str(_fireflyClient.render_tree_id)
except AttributeError:
plots_cell_id = 'plots'
self._client.add_cell(row=0, col=2, width=2, height=3, element_type='xyPlots',
cell_id='plots')
cell_id=plots_cell_id)

def overlayFootprints(self, catalog, color='rgba(74,144,226,0.60)',
highlightColor='cyan', selectColor='orange',
Expand Down

0 comments on commit a4f988a

Please sign in to comment.