Skip to content

Commit 27bbfc1

Browse files
authored
TEST: Print lists, not arrays
1 parent 27c9448 commit 27bbfc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/afni/preprocess.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2668,15 +2668,15 @@ class TShift(AFNICommand):
26682668
>>> tshift._list_outputs()['timing_file'] # doctest: +ELLIPSIS
26692669
'.../slice_timing.1D'
26702670
2671-
>>> np.loadtxt(tshift._list_outputs()['timing_file'])[:5]
2671+
>>> np.loadtxt(tshift._list_outputs()['timing_file']).tolist()[:5]
26722672
[0.0, 0.4, 0.8, 1.2, 1.6]
26732673
26742674
If ``slice_encoding_direction`` is set to ``'k-'``, the slice timing is reversed:
26752675
26762676
>>> tshift.inputs.slice_encoding_direction = 'k-'
26772677
>>> tshift.cmdline
26782678
'3dTshift -prefix functional_tshift -tpattern @slice_timing.1D -TR 2.5s -tzero 0.0 functional.nii'
2679-
>>> np.loadtxt(tshift._list_outputs()['timing_file'])[:5]
2679+
>>> np.loadtxt(tshift._list_outputs()['timing_file']).tolist()[:5]
26802680
[15.6, 15.2, 14.8, 14.4, 14.0]
26812681
26822682
This method creates a ``slice_timing.1D`` file to be passed to ``3dTshift``.

0 commit comments

Comments
 (0)