@@ -309,12 +309,12 @@ class _ApplyCoeffsFieldInputSpec(BaseInterfaceInputSpec):
309309 fmap2data_xfm = InputMultiObject (
310310 File (exists = True ),
311311 desc = "the transform by which the target EPI can be resampled on the fieldmap's grid." ,
312- xor = "data2fmap_xfm" ,
312+ xor = [ "data2fmap_xfm" ] ,
313313 )
314314 data2fmap_xfm = InputMultiObject (
315315 File (exists = True ),
316316 desc = "the transform by which the fieldmap can be resampled on the target EPI's grid." ,
317- xor = "fmap2data_xfm" ,
317+ xor = [ "fmap2data_xfm" ] ,
318318 )
319319 in_xfms = traits .List (
320320 traits .List (traits .List (traits .Float )),
@@ -380,6 +380,24 @@ class ApplyCoeffsField(SimpleInterface):
380380 With those coordinates known, interpolation is trivial.
381381 4. Generate a spatial image with the new data.
382382
383+ Example
384+ -------
385+
386+ >>> from sdcflows.interfaces.bspline import ApplyCoeffsField
387+ >>> unwarp = ApplyCoeffsField(pe_dir='j', ro_time=0.03125)
388+ >>> unwarp.inputs.in_data = str(data_dir / 'epi.nii.gz')
389+ >>> unwarp.inputs.in_coeff = str(data_dir / 'topup-coeff.nii.gz')
390+ >>> unwarp.inputs.data2fmap_xfm = str(data_dir / 'epi2fmap_xfm.txt')
391+ >>> result = unwarp.run() # doctest: +SKIP
392+
393+ Inverse transforms may be used instead:
394+
395+ >>> unwarp = ApplyCoeffsField(pe_dir='j', ro_time=0.03125)
396+ >>> unwarp.inputs.in_data = str(data_dir / 'epi.nii.gz')
397+ >>> unwarp.inputs.in_coeff = str(data_dir / 'topup-coeff.nii.gz')
398+ >>> unwarp.inputs.fmap2data_xfm = str(data_dir / 'fmap2epi_xfm.txt')
399+ >>> result = unwarp.run() # doctest: +SKIP
400+
383401 """
384402
385403 input_spec = _ApplyCoeffsFieldInputSpec
0 commit comments