class_docstr: Estimates the fibre response function for use in spherical deconvolution.
  
  Example
  -------
  
  >>> import nipype.interfaces.mrtrix as mrt
  >>> estresp = mrt.EstimateResponseForSH()
  >>> estresp.inputs.in_file = 'dwi.mif'
  >>> estresp.inputs.mask_image = 'dwi_WMProb.mif'
  >>> estresp.inputs.encoding_file = 'encoding.txt'
  >>> estresp.run()                                   # doctest: +SKIP
class_docstr_tok: ["Estimates","the","fibre","response","function","for","use","in","spherical","deconvolution",".","Example","--","--","--","-",">",">",">","import","nipype.interfaces.mrtrix","as","mrt",">",">",">","estresp","=","mrt.EstimateResponseForSH","(",")",">",">",">","estresp.inputs.in_file","=","'dwi.mif'",">",">",">","estresp.inputs.mask_image","=","'dwi_WMProb.mif'",">",">",">","estresp.inputs.encoding_file","=","'encoding.txt'",">",">",">","estresp.run","(",")","#","doctest",":","+SKIP"]
code: def _gen_filename(self, name):
      if name == "out_filename":
          return self._gen_outfilename()
      else:
          return None
  
imports: import os.path
  import numpy
  from ...None import logging
  from ...utils.filemanip import split_filename
  from ..base import CommandLineInputSpec, CommandLine, BaseInterface, traits, File, TraitedSpec, isdefined
label_desc: Use image node_id 2 for calling the EstimateResponseForSH obj's underlying member method code with example usage: obj._gen_filename(name) and returns: self, None