File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ def update_single_mouse_video(clickData, project_name):
240240 return dash .html .Div (f"Error linking video: { e } " ), dash .no_update
241241
242242 # convert trial to seconds
243- start_time = utils .get_seconds_of_trial (subject , date , trial )
243+ start_time = utils .get_seconds_of_trial (mouse_data_dict [ subject ] , date , trial )
244244 print (start_time )
245245 video_component = dash .html .Video (
246246 id = "video-player" ,
Original file line number Diff line number Diff line change @@ -168,9 +168,8 @@ def load_mouse_data(project_name, mouse_name):
168168 return None
169169
170170
171- def get_seconds_of_trial (subject , date , trial_number ):
171+ def get_seconds_of_trial (df , date , trial_number ):
172172 try :
173- df = mouse_data_dict [subject ]
174173 session_df = df [df .date == date ]
175174 except :
176175 return {}
You can’t perform that action at this time.
0 commit comments