class_docstr: Image windows are retrieved and analysed by the
  tensorflow graph, this windows aggregator receives
  output window data in numpy array. To access image-level
  information the reader is needed.
class_docstr_tok: ["Image","windows","are","retrieved","and","analysed","by","the","tensorflow","graph",",","this","windows","aggregator","receives","output","window","data","in","numpy","array",".","To","access","image-level","information","the","reader","is","needed","."]
docstr: This function writes out a csv of inferred files
  
  :param subject_name: subject name corresponding to output
  :param filename: filename of output
  :return:
docstr_tok: ["This","function","writes","out","a","csv","of","inferred","files",":","param","subject_name",":","subject","name","corresponding","to","output",":","param","filename",":","filename","of","output",":","return",":"]
code: def log_inferred(self, subject_name, filename):
      """
      This function writes out a csv of inferred files
  
      :param subject_name: subject name corresponding to output
      :param filename: filename of output
      :return:
      """
      inferred_csv = os.path.join(self.output_path, "inferred.csv")
      if not self.inferred_cleared:
          if os.path.exists(inferred_csv):
              os.remove(inferred_csv)
          self.inferred_cleared = True
          if not os.path.exists(self.output_path):
              os.makedirs(self.output_path)
      with open(inferred_csv, "a+") as csv_file:
          filename = os.path.join(self.output_path, filename)
          csv_file.write("{},{}\n".format(subject_name, filename))
  
file_path: NiftyNet/niftynet/engine/windows_aggregator_base.py
imports: from __future__ import absolute_import, print_function, division
  import os
  import numpy
  import tensorflow
  from niftynet.engine.image_window import N_SPATIAL
label_desc: Use image node_id 8 for calling the ImageWindowsAggregator obj's underlying member method code with example usage: obj.log_inferred(subject_name, filename) without return types