Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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