Skip to content

Commit f58b6f1

Browse files
authored
Merge pull request #418 from Remi-Gau/bug-fix
[FIX] remove extra submodules and properly compute run level contrasts
2 parents 7750416 + 816f73d commit f58b6f1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+430
-212
lines changed

.github/workflows/run_system_tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ name: system tests
1717
on:
1818
push:
1919
branches:
20-
- master
2120
- main
2221
pull_request:
2322
branches:
24-
- 'master'
2523
- 'main'
2624
schedule:
27-
- cron: "* * 1 * *"
25+
- cron: "0 0 1 * *"
2826

2927
env:
3028
OCTFLAGS: --no-gui --no-window-system --silent

.github/workflows/run_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
pull_request:
2222
branches: '*'
2323
schedule:
24-
- cron: "* * 1 * *"
24+
- cron: "0 0 1 * *"
2525

2626
env:
2727
OCTFLAGS: --no-gui --no-window-system --silent

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
url = https://github.com/bramzandbelt/slice_display.git
1313
[submodule "lib/brain_colours"]
1414
path = lib/brain_colours
15-
url = https://github.com/CPernet/brain_colours.git
15+
url = https://github.com/CPernet/brain_colours.git

demos/MoAE/moae_create_roi_extract_data.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
% we get the con image to extract data
2424
% we can do this by using the "label-XXXX" from the mask
2525
p = bids.internal.parse_filename(spm_file(maskImage, 'filename'));
26-
conImage = spm_select('FPList', ffxDir, ['^con_' p.label '.nii$']);
26+
conImage = spm_select('FPList', ffxDir, ['^con_' p.entities.label '.nii$']);
2727

2828
%% Create ROI right auditory cortex
2929
sphere.location = [57 -22 11];
@@ -35,12 +35,12 @@
3535
[~, roiFile] = createRoi('expand', specification, conImage, pwd, saveROI);
3636

3737
% rename mask image
38-
newname.desc = 'right auditory cortex';
39-
newname.task = '';
40-
newname.label = '';
41-
newname.p = '';
42-
newname.k = '';
43-
newname.MC = '';
38+
newname.entities.desc = 'right auditory cortex';
39+
newname.entities.task = '';
40+
newname.entities.label = '';
41+
newname.entities.p = '';
42+
newname.entities.k = '';
43+
newname.entities.MC = '';
4444
rightRoiFile = renameFile(roiFile, newname);
4545

4646
%% same but with left hemisphere

demos/MoAE/moae_run.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
download_moae_ds(downloadData);
2424

2525
%% Run batches
26-
reportBIDS(opt);
26+
% reportBIDS(opt);
2727
bidsCopyRawFolder(opt, 1);
2828

2929
% In case you just want to run segmentation and skull stripping

demos/MoAE/moae_slice_display.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
%
3232
% - t-statistics opacity-coded
3333

34-
spmTImage = spm_select('FPList', ffxDir, ['^spmT_' p.label '.nii$']);
34+
spmTImage = spm_select('FPList', ffxDir, ['^spmT_' p.entities.label '.nii$']);
3535
layers(2).opacity.file = spmTImage;
3636

3737
layers(2).opacity.range = [2 3];

lib/CPP_ROI

Submodule CPP_ROI updated 450 files

lib/bids-matlab

manualTests/test_moae.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
%% Run batches
4949

50-
reportBIDS(opt);
50+
% reportBIDS(opt);
5151

5252
bidsCopyRawFolder(opt, 1);
5353

src/batches/setBatchEstimateModel.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
matlabbatch{end}.spm.stats.fmri_est.spmmat = spmMatFile;
6060

6161
writeResiduals = true();
62-
if ~opt.glm.QA.do
62+
if ~opt.QA.glm.do
6363
writeResiduals = false();
6464
end
6565
matlabbatch{end}.spm.stats.fmri_est.write_residuals = writeResiduals;

0 commit comments

Comments
 (0)