class_docstr: Streamline tractography using EuDX [Garyfallidis12]_.
  
  .. [Garyfallidis12] Garyfallidis E., “Towards an accurate brain
    tractography”, PhD thesis, University of Cambridge, 2012
  
  Example
  -------
  
  >>> from nipype.interfaces import dipy as ndp
  >>> track = ndp.StreamlineTractography()
  >>> track.inputs.in_file = '4d_dwi.nii'
  >>> track.inputs.in_model = 'model.pklz'
  >>> track.inputs.tracking_mask = 'dilated_wm_mask.nii'
  >>> res = track.run() # doctest: +SKIP
class_docstr_tok: ["Streamline","tractography","using","EuDX","[","Garyfallidis12","]","_",".","..","[","Garyfallidis12","]","Garyfallidis","E.",",","\u201c","Towards","an","accurate","brain","tractography","\u201d",",","PhD","thesis",",","University","of","Cambridge",",","2012","Example","--","--","--","-",">",">",">","from","nipype.interfaces","import","dipy","as","ndp",">",">",">","track","=","ndp.StreamlineTractography","(",")",">",">",">","track.inputs.in_file","=","'4d_dwi.nii'",">",">",">","track.inputs.in_model","=","'model.pklz'",">",">",">","track.inputs.tracking_mask","=","'dilated_wm_mask.nii'",">",">",">","res","=","track.run","(",")","#","doctest",":","+SKIP"]
code: def _gen_filename(self, name, ext=None):
      fname, fext = op.splitext(op.basename(self.inputs.in_file))
      if fext == ".gz":
          fname, fext2 = op.splitext(fname)
          fext = fext2 + fext
  
      if not isdefined(self.inputs.out_prefix):
          out_prefix = op.abspath(fname)
      else:
          out_prefix = self.inputs.out_prefix
  
      if ext is None:
          ext = fext
  
      return out_prefix + "_" + name + ext
  
imports: import os.path
  import numpy
  import nibabel
  from looseversion import LooseVersion
  from ...None import logging
  from ..base import TraitedSpec, BaseInterfaceInputSpec, File, isdefined, traits
  from .base import DipyBaseInterface, HAVE_DIPY, dipy_version, dipy_to_nipype_interface, get_dipy_workflows
label_desc: Use image node_id 3 for calling the StreamlineTractography obj's underlying member method code with example usage: obj._gen_filename(name, ext) and returns: unknown