Skip to content

Commit

Permalink
fix: updated ROI data extraction functions to work with new ROI file …
Browse files Browse the repository at this point in the history
…extension.
  • Loading branch information
BrunoOFSouza committed Mar 15, 2024
1 parent ac4d60c commit 0a49610
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Analysis/Stats_Functions/getDataFromROI.m
Expand Up @@ -36,7 +36,7 @@
% Check if ROImasks file exist:
opts.ROImasks_filename = findMyROIfile(opts.ROImasks_filename, object);
% Load ROI file:
roi_data = load(opts.ROImasks_filename);
roi_data = load(opts.ROImasks_filename,'-mat');
% locate "X" and "Y" dimensions in metaData and in ROI info:
dim_names = metaData.dim_names;
[~,yxLoc] = ismember({'Y','X'}, dim_names);
Expand Down
4 changes: 2 additions & 2 deletions subFunc/findMyROIfile.m
Expand Up @@ -9,8 +9,8 @@
% out (str): full path to the ROI file.

% % Append extension to filename, if not already provided:
% [folder,filename,~] = fileparts(filename);
% filename = [filename '.mat'];
[~,filename,ext] = fileparts(filename);
filename = [filename ext];
% Get protocol handle:
protObj = source;
if ~isempty(protObj)
Expand Down

0 comments on commit 0a49610

Please sign in to comment.