Skip to content

Commit ce88698

Browse files
committed
doctest fixes
1 parent 6908420 commit ce88698

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

nipype/interfaces/fsl/epi.py

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ class PrepareFieldmap(FSLCommand):
5959
>>> prepare = PrepareFieldmap()
6060
>>> prepare.inputs.in_phase = "phase.nii"
6161
>>> 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'
6465
>>> res = prepare.run() # doctest: +SKIP
6566
6667
@@ -153,8 +154,8 @@ class TOPUP( FSLCommand ):
153154
>>> topup = TOPUP()
154155
>>> topup.inputs.in_file = "b0_b0rev.nii"
155156
>>> 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'
158159
>>> res = topup.run() # doctest: +SKIP
159160
160161
"""
@@ -259,8 +260,8 @@ class ApplyTOPUP( FSLCommand ):
259260
>>> applytopup.inputs.encoding_file = "topup_encoding.txt"
260261
>>> applytopup.inputs.in_index = [ 1,2 ]
261262
>>> 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'
264265
>>> res = applytopup.run() # doctest: +SKIP
265266
266267
"""
@@ -337,8 +338,8 @@ class Eddy( FSLCommand ):
337338
>>> eddy.inputs.in_acqp = 'epi_acqp.txt'
338339
>>> eddy.inputs.in_bvec = 'bvecs.scheme'
339340
>>> 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'
342343
>>> res = eddy.run() # doctest: +SKIP
343344
344345
@@ -417,8 +418,9 @@ class EPIDeWarp(FSLCommand):
417418
>>> dewarp.inputs.epi_file = "functional.nii"
418419
>>> dewarp.inputs.mag_file = "magnitude.nii"
419420
>>> 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'
422424
>>> res = dewarp.run() # doctest: +SKIP
423425
424426
References
@@ -504,8 +506,9 @@ class SigLoss(FSLCommand):
504506
>>> sigloss = SigLoss()
505507
>>> sigloss.inputs.in_file = "phase.nii"
506508
>>> 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'
509512
>>> res = sigloss.run() # doctest: +SKIP
510513
"""
511514
input_spec = SigLossInputSpec

0 commit comments

Comments
 (0)