class_docstr: Uses CSD [Tournier2007]_ to generate the fODF of DWIs. The interface uses
  :py:mod:`dipy`, as explained in `dipy's CSD example
  <http://nipy.org/dipy/examples_built/reconst_csd.html>`_.
  
  .. [Tournier2007] Tournier, J.D., et al. NeuroImage 2007.
    Robust determination of the fibre orientation distribution in diffusion
    MRI: Non-negativity constrained super-resolved spherical deconvolution
  
  
  Example
  -------
  
  >>> from nipype.interfaces import dipy as ndp
  >>> csd = ndp.CSD()
  >>> csd.inputs.in_file = '4d_dwi.nii'
  >>> csd.inputs.in_bval = 'bvals'
  >>> csd.inputs.in_bvec = 'bvecs'
  >>> res = csd.run() # doctest: +SKIP
class_docstr_tok: ["Uses","CSD","[","Tournier2007","]","_","to","generate","the","fODF","of","DWIs",".","The","interface","uses",":","py",":","mod",":","`","dipy","`",",","as","explained","in","`","dipy","'s","CSD","example","<","http",":","\/\/nipy.org\/dipy\/examples_built\/reconst_csd.html",">","`","_",".","..","[","Tournier2007","]","Tournier",",","J.D.",",","et","al",".","NeuroImage","2007",".","Robust","determination","of","the","fibre","orientation","distribution","in","diffusion","MRI",":","Non-negativity","constrained","super-resolved","spherical","deconvolution","Example","--","--","--","-",">",">",">","from","nipype.interfaces","import","dipy","as","ndp",">",">",">","csd","=","ndp.CSD","(",")",">",">",">","csd.inputs.in_file","=","'4d_dwi.nii'",">",">",">","csd.inputs.in_bval","=","'bvals'",">",">",">","csd.inputs.in_bvec","=","'bvecs'",">",">",">","res","=","csd.run","(",")","#","doctest",":","+SKIP"]
code: def _list_outputs(self):
      outputs = self._outputs().get()
      outputs["model"] = self._gen_filename("csdmodel", ext=".pklz")
      if self.inputs.save_fods:
          outputs["out_fods"] = self._gen_filename("fods")
      return outputs
  
imports: import os.path
  import numpy
  import nibabel
  from looseversion import LooseVersion
  from ...None import logging
  from ..base import TraitedSpec, File, traits, isdefined
  from .base import DipyDiffusionInterface, DipyBaseInterfaceInputSpec, HAVE_DIPY, dipy_version, dipy_to_nipype_interface, get_dipy_workflows
label_desc: Use image node_id 2 for calling the CSD obj's underlying member method code with example usage: obj._list_outputs() and returns: outputs