Skip to content

Commit

Permalink
[FIX] run test create roi octave (#1285)
Browse files Browse the repository at this point in the history
* run test create roi octave

* fix several tests in cpp roi

* reset submod

* update CPP_ROI

* fix default path output create roi

* fix typo
  • Loading branch information
Remi-Gau authored Jul 13, 2024
1 parent 63de6d0 commit bea0640
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/bidspm/bidspm.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def create_roi(
) -> str:
roi_name = "{ '" + "', '".join(roi_name) + "' }" if roi_name is not None else None # type: ignore
if roi_dir is None:
roi_dir = Path()
roi_dir = output_dir

cmd = generate_cmd(
bids_dir=bids_dir,
Expand Down
2 changes: 1 addition & 1 deletion src/workflows/roi/bidsCreateROI.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function bidsCreateROI(opt)
% opt.roi.atlas = 'wang';
% opt.roi.hemi = {'L', 'R'};
% opt.roi.name = {'V1v', 'V1d'};
% opt.roi.space = {'IXI549Space''};
% opt.roi.space = {'IXI549Space'};
%
% bidsCreateROI(opt);
%
Expand Down
26 changes: 6 additions & 20 deletions tests/tests_slow/tests_cli/test_bidspm_create_roi.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ function test_bidsCreateROI_boilerplate_only()

markTestAs('slow');

if bids.internal.is_octave
moxunit_throw_test_skipped_exception('Need bug fix in CPP ROI extractRoiFromAtlas.');
end

outputPath = tempName();

bidspm(pwd, outputPath, ...
Expand All @@ -40,10 +36,6 @@ function test_bidsCreateROI_glasser()

markTestAs('slow');

if bids.internal.is_octave
moxunit_throw_test_skipped_exception('Need bug fix in CPP ROI extractRoiFromAtlas.');
end

outputPath = tempName();

bidspm(pwd, outputPath, ...
Expand All @@ -54,6 +46,12 @@ function test_bidsCreateROI_glasser()
'space', {'IXI549Space'}, ...
'verbosity', 3);

assert(exist(fullfile(outputPath, ...
'derivatives', ...
'bidspm-roi', ...
'reports', ...
'create_roi_atlas-glasser_citation.md'), 'file') == 2);

rois = spm_select('FPList', fullfile(outputPath, ...
'derivatives', ...
'bidspm-roi', 'group'), '.*glasser.*_mask\.nii');
Expand All @@ -65,10 +63,6 @@ function test_bidsCreateROI_wang()

markTestAs('slow');

if bids.internal.is_octave
moxunit_throw_test_skipped_exception('Need bug fix in CPP ROI extractRoiFromAtlas.');
end

outputPath = tempName();

bidspm(pwd, outputPath, ...
Expand All @@ -90,10 +84,6 @@ function test_bidsCreateROI_neuromorphometrics()

markTestAs('slow');

if bids.internal.is_octave
moxunit_throw_test_skipped_exception('Need bug fix in CPP ROI extractRoiFromAtlas.');
end

outputPath = tempName();

bidspm(pwd, outputPath, ...
Expand Down Expand Up @@ -133,10 +123,6 @@ function test_bidsCreateROI_one_hemisphere()

markTestAs('slow');

if bids.internal.is_octave
moxunit_throw_test_skipped_exception('Need bug fix in CPP ROI extractRoiFromAtlas.');
end

outputPath = tempName();

bidspm(pwd, outputPath, 'subject', ...
Expand Down

0 comments on commit bea0640

Please sign in to comment.