class_docstr: Wraps nitime.analysis.CoherenceAnalyzer: Coherence/y
class_docstr_tok: ["Wraps","nitime.analysis.CoherenceAnalyzer",":","Coherence\/y"]
docstr: Generate the output csv files.
docstr_tok: ["Generate","the","output","csv","files","."]
code: def _make_output_files(self):
      """
      Generate the output csv files.
      """
      for this in zip(
          [self.coherence, self.delay], ["coherence", "delay"]
      ):
          tmp_f = tempfile.mkstemp()[1]
          np.savetxt(tmp_f, this[0], delimiter=",")
  
          fid = open(
              fname_presuffix(
                  self.inputs.output_csv_file, suffix="_%s" % this[1]
              ),
              "w+",
          )
          # this writes ROIs as header line
          fid.write("," + ",".join(self.ROIs) + "\n")
          # this writes ROI and data to a line
          for r, line in zip(self.ROIs, open(tmp_f)):
              fid.write(f"{r},{line}")
          fid.close()
  
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 5 for calling the CoherenceAnalyzer obj's underlying member method code with example usage: obj._make_output_files() without return types