File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ class FmriRealign4dOutputSpec(TraitedSpec):
116
116
desc = "Motion parameter files" )
117
117
118
118
119
- @np .deprecate_with_doc ('Please use SpaceTimeRealign instead' )
120
119
class FmriRealign4d (BaseInterface ):
121
120
"""Simultaneous motion and slice timing correction algorithm
122
121
@@ -278,14 +277,14 @@ def version(self):
278
277
return nipy .__version__
279
278
280
279
def _run_interface (self , runtime ):
281
- from nipy .algorithms .registration import SpaceTimeRealign
282
- from nipy .algorithms .registration .groupwise_registration import SpaceRealign
283
-
284
280
all_ims = [load_image (fname ) for fname in self .inputs .in_file ]
285
281
286
282
if not isdefined (self .inputs .slice_times ):
283
+ from nipy .algorithms .registration .groupwise_registration import \
284
+ SpaceRealign
287
285
R = SpaceRealign (all_ims )
288
286
else :
287
+ from nipy .algorithms .registration import SpaceTimeRealign
289
288
R = SpaceTimeRealign (all_ims ,
290
289
tr = self .inputs .tr ,
291
290
slice_times = self .inputs .slice_times ,
You can’t perform that action at this time.
0 commit comments