original_docstring:  Plot results for each cycle upon cycle completion 
docstring: Plot results for each cycle upon cycle completion
docstring_tokens: Plot results for each cycle upon cycle completion
code: def plot_runtime_results(self):
      ''' Plot results for each cycle upon cycle completion '''
  
      # Find pickle_*.stat file
      stats_folder = os.path.join(self.pparams.run_no, 'stats')
      stat_files = [os.path.join(stats_folder, i) for i in
                    os.listdir(stats_folder) if i.endswith('stat')]
  
      if stat_files != []:
        assert len(stat_files) == 1
        stat_file = stat_files[0]
        if os.path.isfile(stat_file):
          info = ep.load(stat_file)
        else:
          info = {}
      else:
        info = {}
  
      if 'binned_resolution' in info:
        self.graph_tab.draw_plots(info, self.pparams.n_postref_cycle)
        self.current_cycle = len(info['total_cc12']) - 1
code_tokens: def plot_runtime_results ( self ) : stats_folder = os . path . join ( self . pparams . run_no , 'stats' ) stat_files = [ os . path . join ( stats_folder , i ) for i in os . listdir ( stats_folder ) if i . endswith ( 'stat' ) ] if stat_files != [ ] : assert len ( stat_files ) == 1 stat_file = stat_files [ 0 ] if os . path . isfile ( stat_file ) : info = ep . load ( stat_file ) else : info = { } else : info = { } if 'binned_resolution' in info : self . graph_tab . draw_plots ( info , self . pparams . n_postref_cycle ) self . current_cycle = len ( info [ 'total_cc12' ] ) - 1
short_docstring: Plot results for each cycle upon cycle completion
short_docstring_tokens: Plot results for each cycle upon cycle completion
comment: ''' Plot results for each cycle upon cycle completion '''$SEP$# Find pickle_*.stat file