Skip to content

Commit bc64335

Browse files
committed
.
1 parent 9b4bd55 commit bc64335

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

behavior_data_visualizer/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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",

behavior_data_visualizer/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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 {}

0 commit comments

Comments
 (0)