class_docstr: Wraps nitime.analysis.CoherenceAnalyzer: Coherence/y
class_docstr_tok: ["Wraps","nitime.analysis.CoherenceAnalyzer",":","Coherence\/y"]
code: def _list_outputs(self):
      outputs = self.output_spec().get()
  
      # if isdefined(self.inputs.output_csv_file):
  
      # write to a csv file and assign a value to self.coherence_file (a
      # file name + path)
  
      # Always defined (the arrays):
      outputs["coherence_array"] = self.coherence
      outputs["timedelay_array"] = self.delay
  
      # Conditional
      if isdefined(self.inputs.output_csv_file) and hasattr(
          self, "coherence"
      ):
          # we need to make a function that we call here that writes the
          # coherence values to this file "coherence_csv" and makes the
          # time_delay csv file??
          self._make_output_files()
          outputs["coherence_csv"] = fname_presuffix(
              self.inputs.output_csv_file, suffix="_coherence"
          )
  
          outputs["timedelay_csv"] = fname_presuffix(
              self.inputs.output_csv_file, suffix="_delay"
          )
  
      if isdefined(self.inputs.output_figure_file) and hasattr(
          self, "coherence"
      ):
          self._make_output_figures()
          outputs["coherence_fig"] = fname_presuffix(
              self.inputs.output_figure_file, suffix="_coherence"
          )
          outputs["timedelay_fig"] = fname_presuffix(
              self.inputs.output_figure_file, suffix="_delay"
          )
  
      return outputs
  
file_path: nipype/nipype/interfaces/nitime/analysis.py
imports: import numpy
  import tempfile
  from ...utils.misc import package_check
  from ...utils.filemanip import fname_presuffix
  from .base import NitimeBaseInterface
  from ..base import TraitedSpec, File, Undefined, traits, isdefined, BaseInterfaceInputSpec
label_desc: Use image node_id 4 for calling the CoherenceAnalyzer obj's underlying member method code with example usage: obj._list_outputs() and returns: outputs