Skip to content

Commit

Permalink
add logging of params used and the current version of the script
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanharvey1 committed Nov 5, 2024
1 parent 421feb1 commit ef3b5f1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion preProcessing/preprocessSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,13 @@ function preprocessSession(varargin)
sessionSummary;
end
end
% end

%% logging
% log params used
results = p.Results;
save(fullfile(basepath,'preprocessSession_params.m'),'results')

% log script
% saves a text file of the current code used
targetFile = fullfile(basepath,'preprocessSession.log');
copyfile(which('preprocessSession.m'), targetFile);

0 comments on commit ef3b5f1

Please sign in to comment.