parameters: (info: SingleRunInfo,
                                   delete_empty: bool = True)
return_statement: return run
docstring: # Load results of the analyzes from a given output folder.
      # - info is the SingleRunInfo object
      # - delete_empty specifies if the empty plist files should be deleted
docstring_summary: # Load results of the analyzes from a given output folder.
      # - info is the SingleRunInfo object
      # - delete_empty specifies if the empty plist files should be deleted
docstring_tokens: # Load results of the analyzes from a given output folder . # - info is the SingleRunInfo object # - delete_empty specifies if the empty plist files should be deleted
function: def load_results_from_single_run(info: SingleRunInfo,
                                   delete_empty: bool = True) -> AnalysisRun:
      """
      # Load results of the analyzes from a given output folder.
      # - info is the SingleRunInfo object
      # - delete_empty specifies if the empty plist files should be deleted
  
      """
      path = info.path
      run = AnalysisRun(info)
  
      if os.path.isfile(path):
          run.read_single_file(path, delete_empty)
      else:
          for dirpath, dirnames, filenames in os.walk(path):
              for f in filenames:
                  if not f.endswith('plist'):
                      continue
  
                  p = os.path.join(dirpath, f)
                  run.read_single_file(p, delete_empty)
  
      return run
function_tokens: def load_results_from_single_run ( info : SingleRunInfo , delete_empty : bool = True ) -> AnalysisRun : path = info . path run = AnalysisRun ( info ) if os . path . isfile ( path ) : run . read_single_file ( path , delete_empty ) else : for dirpath , dirnames , filenames in os . walk ( path ) : for f in filenames : if not f . endswith ( 'plist' ) : continue p = os . path . join ( dirpath , f ) run . read_single_file ( p , delete_empty ) return run