Skip to content

Commit

Permalink
Fix layout issue in widgets and add option to color by source power
Browse files Browse the repository at this point in the history
  • Loading branch information
deeplycloudy committed Sep 9, 2016
1 parent 0f54d36 commit 659ef1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LMA/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class LMAController(object):
def __init__(self, *args, **kwargs):
super(LMAController, self).__init__(*args, **kwargs)
self.bounds = Bounds(chi2=(0.0, 1.0), stations=(6, 99))
self.default_color_bounds = Bounds(parent=self.bounds, charge=(-1,1))
self.default_color_bounds = Bounds(parent=self.bounds, charge=(-1,1), power=(-10,50))
self.datasets = set()
self.flash_datasets = set()

Expand Down
4 changes: 2 additions & 2 deletions LMA/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, panels, lma_ctrl, scatter_ctrl, charge_lasso, d): #, station_

#Max Chi2 Value:
chi2_selection = widgets.BoundedFloatText(description='Max Chi2:', min='0.0', max='1000.0', value='1')
chi2_selection.layout.width = '30px'
# chi2_selection.layout.width = '30px'
chi2_selection.on_trait_change(self.max_chi2, 'value')


Expand Down Expand Up @@ -49,7 +49,7 @@ def __init__(self, panels, lma_ctrl, scatter_ctrl, charge_lasso, d): #, station_
draw_lasso_widget.on_click(self.lasso_button)

#Color Field Selection:
color_field_widget = widgets.RadioButtons(description='Color By:', options=["chi2", "time", "charge"], value="time")
color_field_widget = widgets.RadioButtons(description='Color By:', options=["chi2", "time", "charge", "power"], value="time")
# color_field_widget = widgets.RadioButtons(description='Color By:', values=["chi2", "time", "charge"], value="time")
color_field_widget.on_trait_change(self.change_color_field, 'value')

Expand Down

0 comments on commit 659ef1b

Please sign in to comment.