          logger.debug("Setting poup title")
          selected_id = self.selected_id.get()
          title = "All Sessions"
          if selected_id != "Total":
              title = "{} Model: Session #{}".format(self.session.modelname.title(), selected_id)
          logger.debug("Title: '%s'", title)
          return "{} - {}".format(title, self.session.modeldir)
  
      def data_popup_get_position(self):
          """ Get the position of the next window """
 
</s> remove         return "{} - {}".format(title, self.session.modeldir)
 </s> add         return "{} - {}".format(title, model_dir)

    def _data_popup_get_position(self):
        """ Get the position of the next window to pop the summary graph to. </s> remove         selected_id = self.selected_id.get()
 </s> add         selected_id = self._selected_id.get()
        model_dir, model_name = os.path.split(Session.model_filename) </s> remove     def data_popup_title(self):
        """ Set the data popup title """
 </s> add     def _data_popup_title(self):
        """ Get the summary graph popup title.

        Returns
        -------
        str
            The title to display at the top of the pop-up graph window
        """ </s> remove     def data_popup_get_position(self):
        """ Get the position of the next window """
 </s> add         Returns
        -------
        list
            The [x, y] co-ordinates that the pop up window should be placed at
        """ </s> remove     def data_popup_check_boundaries(self, initial_position, position):
        """ Check that the popup remains within the screen boundaries """
 </s> add     def _data_popup_check_boundaries(self, initial_position, position):
        """ Check that the popup remains within the screen boundaries.

        Parameters
        ----------
        initial_position: list
            The [x, y] position of the last displayed popup window
        position: list
            The requested [x, y] position for the new popup window

        Returns
        -------
        tuple
            The original initial_position and position, adjusted if the new window would go out of
            bounds
        """
            title = "{} Model: Session #{}".format(model_name.title(), selected_id)
          logger.debug("Setting poup title")
          selected_id = self.selected_id.get()
          title = "All Sessions"
          if selected_id != "Total":
            title = "{} Model: Session #{}".format(model_name.title(), selected_id)
          logger.debug("Title: '%s'", title)
          return "{} - {}".format(title, self.session.modeldir)
  
      def data_popup_get_position(self):
          """ Get the position of the next window """
keep keep keep keep 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