Skip to content

Commit

Permalink
[FIX] don't resample subject-space ROIs unless user provides something
Browse files Browse the repository at this point in the history
  • Loading branch information
36000 committed Oct 21, 2022
1 parent 9163f34 commit 589dab7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions AFQ/api/bundle_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self,
bundle_info=BUNDLES,
seg_algo="afq",
resample_to=None,
resample_subject_to=None,
resample_subject_to=False,
keep_in_memory=False):
"""
Create a bundle dictionary, needed for the segmentation
Expand Down Expand Up @@ -100,8 +100,6 @@ def __init__(self,
If there are bundles in bundle_info with the 'space' attribute
set to 'subject', their images (all ROIs and probability maps)
will be resampled to the affine and shape of this image.
If None, the template will be overriden when passed to
an API class.
If False, no resampling will be done.
Default: None
Expand Down Expand Up @@ -519,7 +517,7 @@ def __init__(self,
bundle_info=PEDIATRIC_BUNDLES,
seg_algo="afq",
resample_to=None,
resample_subject_to=None,
resample_subject_to=False,
keep_in_memory=False):
"""
Create a pediatric bundle dictionary, needed for the segmentation
Expand Down Expand Up @@ -547,8 +545,6 @@ def __init__(self,
If there are ROIs with the 'space' attribute
set to 'subject', those ROIs will be resampled to the affine
and shape of this image.
If None, the template will be overriden when passed to
an API class.
If False, no resampling will be done.
Default: None
Expand Down

0 comments on commit 589dab7

Please sign in to comment.