File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,10 @@ class GenerateSamplingReferenceInputSpec(BaseInterfaceInputSpec):
126
126
desc = 'force xform code' )
127
127
fov_mask = traits .Either (None , File (exists = True ), usedefault = True ,
128
128
desc = 'mask to clip field of view (in fixed_image space)' )
129
- keep_native = traits .Bool (False , usedefault = True ,
130
- desc = 'whether the original, native resolution should be '
131
- 'used.' )
129
+ keep_native = traits .Bool (True , usedefault = True ,
130
+ desc = 'calculate a grid with native resolution covering '
131
+ 'the volume extent given by fixed_image, fast forward '
132
+ 'fixed_image otherwise.' )
132
133
133
134
134
135
class GenerateSamplingReferenceOutputSpec (TraitedSpec ):
@@ -154,8 +155,8 @@ class GenerateSamplingReference(SimpleInterface):
154
155
output_spec = GenerateSamplingReferenceOutputSpec
155
156
156
157
def _run_interface (self , runtime ):
157
- if self .inputs .keep_native :
158
- self ._results ['out_file' ] = self .inputs .moving_image
158
+ if not self .inputs .keep_native :
159
+ self ._results ['out_file' ] = self .inputs .fixed_image
159
160
return runtime
160
161
self ._results ['out_file' ] = _gen_reference (
161
162
self .inputs .fixed_image ,
You can’t perform that action at this time.
0 commit comments