              for row in write_dicts:
                  csvout.writerow(row)
  
  
  class Options():
      """ Options bar of Analysis tab """
      def __init__(self, parent):
 
</s> remove     def __init__(self, model_dir, model_name, session_id):
        logger.debug("Initializing: %s: (model_dir: %s, model_name: %s, session_id: %s)",
                     self.__class__.__name__, model_dir, model_name, session_id)
 </s> add     def __init__(self, model_dir, model_name, session_id, datapoints):
        logger.debug("Initializing: %s: (model_dir: %s, model_name: %s, session_id: %s, "
                     "datapoints: %s)", self.__class__.__name__, model_dir, model_name, session_id,
                     datapoints) </s> remove         return self.state["sessions"][str(session_id)]["iterations"]
 </s> add         session = self.state["sessions"].get(str(session_id), None)
        if session is None:
            logger.warning("No session data found for session id: %s", session_id)
            return 0
        return session["iterations"] </s> remove         return self.state["sessions"][str(self.session_id)]
 </s> add         return self.state["sessions"].get(str(self.session_id), dict()) </s> remove             self.pbar.config(maximum=1000)
 </s> add             self.pbar.config(maximum=100)
        get_config().set_cursor_default()
              for row in write_dicts:
                  csvout.writerow(row)
        get_config().set_cursor_default()
  
  
  class Options():
      """ Options bar of Analysis tab """
      def __init__(self, parent):
keep add keep keep keep keep keep
 GUI Fixups

- Analysis: Handle missing session Ids
- Analysis: Handle invalid data selections
- Analysis: Don't update graph on check box selection
- Analysis: Add cursor events to analysis tab
- Analysis: Change default graph view
- Training: Prevent GUI from attempting to close graphs which do not exist
- Extract/Convert: Make file extensions case-insensitive for preview
- Progress bar: Make compatible for downloads
- Progress bar: Add TQDM Description to progress bar stats text 
lib/gui/display_analysis.py