add update of brightness plot when controller is disabled

This commit is contained in:
Brendan Haines 2020-03-02 22:02:50 -07:00
parent 126b48a41e
commit 0790999fd8

View File

@ -146,8 +146,13 @@ def update_plots(attrname=None, old=None, new=None):
global brightness global brightness
global time_data global time_data
global brightness_plot_source global brightness_plot_source
brightness_plot_source.data = dict(sensor=brightness_idx, brightness=brightness) global control_thread_run
time_plot_source.data = dict(t=time_data[:,0], e=time_data[:,1], c=time_data[:,2]) if control_thread_run:
brightness_plot_source.data = dict(sensor=brightness_idx, brightness=brightness)
time_plot_source.data = dict(t=time_data[:,0], e=time_data[:,1], c=time_data[:,2])
else:
brightness = np.clip([get_normalized_reflectivity(c) for c in range(8)], 0, 1)
brightness_plot_source.data = dict(sensor=brightness_idx, brightness=brightness)
def cal_white(attrname=None, old=None, new=None): def cal_white(attrname=None, old=None, new=None):
global white_cal global white_cal