class_docstr: A base interface for py:mod:`dipy` computations.
class_docstr_tok: ["A","base","interface","for","py",":","mod",":","`","dipy","`","computations","."]
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
  
file_path: nipype/nipype/interfaces/dipy/base.py
imports: import os.path
  import inspect
  import numpy
  from ...None import logging
  from ..base import traits, File, isdefined, LibraryBaseInterface, BaseInterfaceInputSpec, TraitedSpec
label_desc: Use image node_id 2 for calling the DipyDiffusionInterface obj's underlying member method code with example usage: obj._gen_filename(name, ext) and returns: unknown