@@ -59,8 +59,9 @@ class PrepareFieldmap(FSLCommand):
59
59
>>> prepare = PrepareFieldmap()
60
60
>>> prepare.inputs.in_phase = "phase.nii"
61
61
>>> prepare.inputs.in_magnitude = "magnitude.nii"
62
- >>> prepare.cmdline
63
- 'fsl_prepare_fieldmap SIEMENS phase.nii magnitude.nii /home/oesteban/workspace/nipype/nipype/testing/data/phase_fslprepared.nii.gz 2.460000'
62
+ >>> prepare.inputs.output_type = "NIFTI_GZ"
63
+ >>> prepare.cmdline #doctest: +ELLIPSIS
64
+ 'fsl_prepare_fieldmap SIEMENS phase.nii magnitude.nii .../phase_fslprepared.nii.gz 2.460000'
64
65
>>> res = prepare.run() # doctest: +SKIP
65
66
66
67
@@ -153,8 +154,8 @@ class TOPUP( FSLCommand ):
153
154
>>> topup = TOPUP()
154
155
>>> topup.inputs.in_file = "b0_b0rev.nii"
155
156
>>> topup.inputs.encoding_file = "topup_encoding.txt"
156
- >>> topup.cmdline
157
- 'topup --config=b02b0.cnf --datain=topup_encoding.txt --imain=b0_b0rev.nii --out=/home/oesteban/workspace/nipype/nipype/testing/data /nipypetu'
157
+ >>> topup.cmdline #doctest: +ELLIPSIS
158
+ 'topup --config=b02b0.cnf --datain=topup_encoding.txt --imain=b0_b0rev.nii --out=... /nipypetu'
158
159
>>> res = topup.run() # doctest: +SKIP
159
160
160
161
"""
@@ -259,8 +260,8 @@ class ApplyTOPUP( FSLCommand ):
259
260
>>> applytopup.inputs.encoding_file = "topup_encoding.txt"
260
261
>>> applytopup.inputs.in_index = [ 1,2 ]
261
262
>>> applytopup.inputs.in_topup = "my_topup_results"
262
- >>> applytopup.cmdline
263
- 'applytopup --datain=topup_encoding.txt --imain=epi.nii,epi_rev.nii --inindex=1,2 --topup=my_topup_results --out=/home/oesteban/workspace/nipype/nipype/testing/data /nipypeatu'
263
+ >>> applytopup.cmdline #doctest: +ELLIPSIS
264
+ 'applytopup --datain=topup_encoding.txt --imain=epi.nii,epi_rev.nii --inindex=1,2 --topup=my_topup_results --out=... /nipypeatu'
264
265
>>> res = applytopup.run() # doctest: +SKIP
265
266
266
267
"""
@@ -337,8 +338,8 @@ class Eddy( FSLCommand ):
337
338
>>> eddy.inputs.in_acqp = 'epi_acqp.txt'
338
339
>>> eddy.inputs.in_bvec = 'bvecs.scheme'
339
340
>>> eddy.inputs.in_bval = 'bvals.scheme'
340
- >>> eddy.cmdline
341
- 'eddy --acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme --imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii --out=/home/oesteban/workspace/nipype/nipype/testing/data /eddy_corrected'
341
+ >>> eddy.cmdline #doctest: +ELLIPSIS
342
+ 'eddy --acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme --imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii --out=... /eddy_corrected'
342
343
>>> res = eddy.run() # doctest: +SKIP
343
344
344
345
@@ -417,8 +418,9 @@ class EPIDeWarp(FSLCommand):
417
418
>>> dewarp.inputs.epi_file = "functional.nii"
418
419
>>> dewarp.inputs.mag_file = "magnitude.nii"
419
420
>>> dewarp.inputs.dph_file = "phase.nii"
420
- >>> dewarp.cmdline
421
- 'epidewarp.fsl --mag magnitude.nii --dph phase.nii --epi functional.nii --esp 0.58 --exfdw /home/oesteban/workspace/nipype/nipype/testing/data/exfdw.nii.gz --nocleanup --sigma 2 --tediff 2.46 --tmpdir /home/oesteban/workspace/nipype/nipype/testing/data/temp --vsm /home/oesteban/workspace/nipype/nipype/testing/data/vsm.nii.gz'
421
+ >>> dewarp.inputs.output_type = "NIFTI_GZ"
422
+ >>> dewarp.cmdline #doctest: +ELLIPSIS
423
+ 'epidewarp.fsl --mag magnitude.nii --dph phase.nii --epi functional.nii --esp 0.58 --exfdw .../exfdw.nii.gz --nocleanup --sigma 2 --tediff 2.46 --tmpdir .../temp --vsm .../vsm.nii.gz'
422
424
>>> res = dewarp.run() # doctest: +SKIP
423
425
424
426
References
@@ -504,8 +506,9 @@ class SigLoss(FSLCommand):
504
506
>>> sigloss = SigLoss()
505
507
>>> sigloss.inputs.in_file = "phase.nii"
506
508
>>> sigloss.inputs.echo_time = 0.03
507
- >>> sigloss.cmdline
508
- 'sigloss --te=0.030000 -i phase.nii -s /home/oesteban/workspace/nipype/nipype/testing/data/phase_sigloss.nii.gz'
509
+ >>> sigloss.inputs.output_type = "NIFTI_GZ"
510
+ >>> sigloss.cmdline #doctest: +ELLIPSIS
511
+ 'sigloss --te=0.030000 -i phase.nii -s .../phase_sigloss.nii.gz'
509
512
>>> res = sigloss.run() # doctest: +SKIP
510
513
"""
511
514
input_spec = SigLossInputSpec
0 commit comments