Skip to content

Commit

Permalink
added video time as input variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lolaBerkowitz committed Nov 26, 2024
1 parent 5870f27 commit 9e827f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions behavior/update_metadata_pixel_distance.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function update_metadata_pixel_distance(data_path)
function update_metadata_pixel_distance(data_path,video_time)

df = readtable(data_path,'Delimiter','comma');

Expand All @@ -14,7 +14,7 @@ function update_metadata_pixel_distance(data_path)
video_path = fullfile(df.basepath{i},[df.vidname{i},'.avi']);
maze_size = df.maze_width_cm(i);

pixel_distance = tracking.maze_distance_gui(video_path,maze_size,300);
pixel_distance = tracking.maze_distance_gui(video_path,maze_size,video_time);

df.pixel_distance(i) = pixel_distance;

Expand Down

0 comments on commit 9e827f2

Please sign in to comment.