Skip to content

Commit f77c145

Browse files
author
Ben Cipollini
committed
range => list(range)
1 parent 135638e commit f77c145

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

nipype/interfaces/nipy/preprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class FmriRealign4d(BaseInterface):
129129
>>> realigner = FmriRealign4d()
130130
>>> realigner.inputs.in_file = ['functional.nii']
131131
>>> realigner.inputs.tr = 2
132-
>>> realigner.inputs.slice_order = range(0,67)
132+
>>> realigner.inputs.slice_order = list(range(0,67))
133133
>>> res = realigner.run() # doctest: +SKIP
134134
135135
References
@@ -256,7 +256,7 @@ class SpaceTimeRealigner(BaseInterface):
256256
>>> realigner = SpaceTimeRealigner()
257257
>>> realigner.inputs.in_file = ['functional.nii']
258258
>>> realigner.inputs.tr = 2
259-
>>> realigner.inputs.slice_times = range(0, 3, 67)
259+
>>> realigner.inputs.slice_times = list(range(0, 3, 67))
260260
>>> realigner.inputs.slice_info = 2
261261
>>> res = realigner.run() # doctest: +SKIP
262262

nipype/interfaces/spm/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class SliceTiming(SPMCommand):
7575
>>> st.inputs.num_slices = 32
7676
>>> st.inputs.time_repetition = 6.0
7777
>>> st.inputs.time_acquisition = 6. - 6./32.
78-
>>> st.inputs.slice_order = range(32,0,-1)
78+
>>> st.inputs.slice_order = list(range(32,0,-1))
7979
>>> st.inputs.ref_slice = 1
8080
>>> st.run() # doctest: +SKIP
8181

nipype/workflows/dmri/fsl/artifacts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ def sdc_fmb(name='fmb_correction', interp='Linear',
534534
>>> from nipype.workflows.dmri.fsl.artifacts import sdc_fmb
535535
>>> fmb = sdc_fmb()
536536
>>> fmb.inputs.inputnode.in_file = 'diffusion.nii'
537-
>>> fmb.inputs.inputnode.in_ref = range(0, 30, 6)
537+
>>> fmb.inputs.inputnode.in_ref = list(range(0, 30, 6))
538538
>>> fmb.inputs.inputnode.in_mask = 'mask.nii'
539539
>>> fmb.inputs.inputnode.bmap_mag = 'magnitude.nii'
540540
>>> fmb.inputs.inputnode.bmap_pha = 'phase.nii'

0 commit comments

Comments
 (0)