Skip to content

Commit 2fc9de2

Browse files
committed
all tests pass
1 parent ad561c7 commit 2fc9de2

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

braph2/analysis/test_GUIAnalysis.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030

3131
GUIAnalysis(ga)
3232

33-
% set(gcf, 'CloseRequestFcn', 'closereq')
34-
% close(gcf)
33+
set(gcf, 'CloseRequestFcn', 'closereq')
34+
close(gcf)

braph2/workflows/Connectivity/SubjectCON.m

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ function save_to_xls(cohort, varargin)
406406
sub_id = erase(files(i).name, '.txt');
407407
label = raw{1, 1};
408408
notes = raw{2, 1};
409-
B = raw(3:end, 1);
409+
B = raw(1:end, 1);
410410
B = reshape(B, [atlases.getBrainRegions().length() atlases.getBrainRegions().length()]);
411411
B = B';
412412
C = cellfun(@(x) str2double(x), B);
@@ -418,16 +418,11 @@ function save_to_xls(cohort, varargin)
418418
cohort.getSubjects().add(subject.getID(), subject, i);
419419
end
420420

421-
% retrieve group information
422-
file_group = [directory filesep() 'group_info.txt'];
423-
group_raw = textread(file_group, '%s', 'delimiter', '\t', 'whitespace', ''); %#ok<DTXTRD>
424-
group_label = group_raw{2, 1};
425-
group_notes = group_raw{3, 1};
426421

427422
% creates group
428423
if i == length(files)
429424
[~, groupname] = fileparts(directory);
430-
group = Group(subject_class, groupname, group_label, group_notes, cohort.getSubjects().getValues());
425+
group = Group(subject_class, groupname, '', '', cohort.getSubjects().getValues());
431426
cohort.getGroups().add(group.getID(), group);
432427
end
433428
end

0 commit comments

Comments
 (0)