              return
          if session.logging_disabled:
              logger.trace("Logging disabled. Not triggering analysis update")
              return
          msg = "Currently running training session"
          self._session = session
          # Reload the state file to get approx currently training iterations
          self._session.load_state_file()
          self._set_session_summary(msg)
  
      def _save_session(self):
          """ Launch a file dialog pop-up to save the current analysis data to a CSV file. """
          logger.debug("Saving session")
          if not self._summary:
 
</s> remove         if session.logging_disabled:
 </s> add         if Session.logging_disabled: </s> remove         self._clear_session()
        session = get_config().session
        if not session.initialized:
 </s> add         if not Session.is_training: </s> remove         if self._session is None:
 </s> add         if not Session.is_loaded: </s> remove         self._reset_session_info()
        self._session = None
 </s> add         if not Session.is_training:
            self._reset_session_info()
            Session.clear()
        self._clear_session()
        self._set_session_summary("Currently running training session")
              return
          if session.logging_disabled:
              logger.trace("Logging disabled. Not triggering analysis update")
              return
        self._clear_session()
        self._set_session_summary("Currently running training session")
        self._clear_session()
        self._set_session_summary("Currently running training session")
        self._clear_session()
        self._set_session_summary("Currently running training session")
        self._clear_session()
        self._set_session_summary("Currently running training session")
        self._clear_session()
        self._set_session_summary("Currently running training session")
  
      def _save_session(self):
          """ Launch a file dialog pop-up to save the current analysis data to a CSV file. """
          logger.debug("Saving session")
          if not self._summary:
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 GUI - Stats optimization (#1067)

* Faster stat loading + caching

* Compress data in cache

* Optimize some calculations

* Vectorize smoothing

* stats.Calculations optimized

* Load latest training data from live iterator

* Add options to training graph 
lib/gui/display_analysis.py