mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-12-26 10:57:55 -07:00
WIP: potentially fix function signatures for callbacks
This commit is contained in:
parent
7e7ffffd64
commit
38a382c45a
|
@ -55,16 +55,16 @@ plot = figure(plot_height=400, plot_width=400, title="my sine wave",
|
|||
|
||||
plot.line('x', 'y', source=plt_source, line_width=3, line_alpha=0.6)
|
||||
|
||||
def update_data(*args, **kwargs):
|
||||
def update_data(attrname=None, old=None, new=None):
|
||||
brightness = [get_normalized_reflectivity(c) for c in range(8)]
|
||||
plt_source.data = dict(x=brightness_idx, y=brightness)
|
||||
|
||||
def cal_white(*args, **kwargs):
|
||||
def cal_white(attrname=None, old=None, new=None):
|
||||
global white_cal
|
||||
white_cal = [get_reflectivity(c) for c in range(8)]
|
||||
update_data()
|
||||
|
||||
def cal_black(*args, **kwargs):
|
||||
def cal_black(attrname=None, old=None, new=None):
|
||||
global black_cal
|
||||
black_cal = [get_reflectivity(c) for c in range(8)]
|
||||
update_data()
|
||||
|
|
Loading…
Reference in New Issue
Block a user