Skip to content

Commit

Permalink
fix default path output create roi
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jul 13, 2024
1 parent d5f5c20 commit 6671a8f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/CPP_ROI
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

Check warning on line 189 in src/bidspm/bidspm.py

View check run for this annotation

Codecov / codecov/patch

src/bidspm/bidspm.py#L189

Added line #L189 was not covered by tests

cmd = generate_cmd(
bids_dir=bids_dir,
Expand Down
6 changes: 6 additions & 0 deletions tests/tests_slow/tests_cli/test_bidspm_create_roi.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,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 Down

0 comments on commit 6671a8f

Please sign in to comment.