Skip to content

Commit

Permalink
Merge pull request #118 from CCC-members/develop
Browse files Browse the repository at this point in the history
updating properties
  • Loading branch information
arioskyag authored Dec 6, 2023
2 parents a5a910e + 031c287 commit 2305fa1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cfs_properties/functions/check_properties.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%CHECK_PROPERTIES Summary of this function goes here
% Detailed explanation goes here
status = true;
reject_subjects = struct;
reject_subjects = [];
reject_anat = {};
reject_nonbrain = {};

Expand Down Expand Up @@ -352,7 +352,7 @@
disp("--------------------------------------------------------------------------");
warning('-->> Some subject do not have the correct structure');
warning('-->> The following subjects will be rejected for analysis');
disp(reject_subjects);
disp({reject_subjects.SubID});
warning('Please check the folder structure.');
end
else
Expand Down
4 changes: 2 additions & 2 deletions functions/cfs_process_interface.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@
return;
end
else

base_path = anatomy_type.base_path;
subjects = dir(base_path);
subjects(ismember({subjects.name},{'.','..'})) = []; %remove . and ..
if(~isempty(reject_subjects))
subjects(ismember({subjects.name},reject_subjects)) = [];
subjects(ismember({subjects.name},{reject_subjects.SubID})) = [];
end
disp(strcat('-->> Data Source: ', anatomy_type.base_path ));
end
Expand Down
1 change: 1 addition & 0 deletions functions/processes/process_create_subject.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
end
end
end

CiftiStorm.Participants(end+1).SubID = subID;
if(isempty(errMessage))
CiftiStorm.Participants(end).Status = "Processing";
Expand Down

0 comments on commit 2305fa1

Please sign in to comment.