Skip to content

Commit

Permalink
moved restrict before transform
Browse files Browse the repository at this point in the history
  • Loading branch information
lolaBerkowitz committed Nov 25, 2024
1 parent c0a427c commit 7a4df47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions preprocessing/behavior/restrict_and_transform.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ function restrict_and_transform(basepath,varargin)

% load sessions file
load(fullfile(basepath,[basename,'.session.mat']),'session')
% restrict the coordinates and save back to behavior file
tracking.restrict(session,behavior,basepath);

load(fullfile(basepath,[basename,'.animal.behavior.mat']),'behavior')

% scales coordinates determined by known maze size and measurements in pixels
% from image
tracking.scale_coords(session,behavior,basepath);
% reload behavior file
load(fullfile(basepath,[basename,'.animal.behavior.mat']),'behavior')

% restrict the coordinates and save back to behavior file
tracking.restrict(session,behavior,basepath);
end

0 comments on commit 7a4df47

Please sign in to comment.