File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,10 @@ def get_data_dims(volume):
40
40
41
41
42
42
def transform_to_affine (streams , header , affine ):
43
- from dipy .tracking .utils import transform_tracking_output
43
+ try :
44
+ from dipy .tracking .utils import transform_tracking_output
45
+ except ImportError :
46
+ from dipy .tracking .utils import move_streamlines as transform_tracking_output
44
47
45
48
rotation , scale = np .linalg .qr (affine )
46
49
streams = transform_tracking_output (streams , rotation )
@@ -193,10 +196,11 @@ class MRTrix2TrackVis(DipyBaseInterface):
193
196
output_spec = MRTrix2TrackVisOutputSpec
194
197
195
198
def _run_interface (self , runtime ):
196
- from dipy .tracking .utils import (
197
- affine_from_fsl_mat_file ,
198
- transform_tracking_output ,
199
- )
199
+ from dipy .tracking .utils import affine_from_fsl_mat_file
200
+ try :
201
+ from dipy .tracking .utils import transform_tracking_output
202
+ except ImportError :
203
+ from dipy .tracking .utils import move_streamlines as transform_tracking_output
200
204
201
205
dx , dy , dz = get_data_dims (self .inputs .image_file )
202
206
vx , vy , vz = get_vox_dims (self .inputs .image_file )
You can’t perform that action at this time.
0 commit comments