          compiled = list()
          for sess_idx, ts_data in self.time_stats.items():
              iterations = self.session.get_iterations_for_session(sess_idx)
              elapsed = ts_data["end_time"] - ts_data["start_time"]
              batchsize = self.session.total_batchsize[sess_idx]
              compiled.append({"session": sess_idx,
                               "start": ts_data["start_time"],
                               "end": ts_data["end_time"],
                               "elapsed": elapsed,
                               "rate": (batchsize * iterations) / elapsed,
 
</s> remove         message = "{}  |  {}  |  {}  |  {}".format(processtime,
                                                   tqdm["rte"],
                                                   tqdm["itm"],
                                                   tqdm["pct"])

        current, total = tqdm["itm"].split("/")
        position = int((float(current) / float(total)) * 1000)
 </s> add         message = "{}{}  |  {}  |  {}  |  {}".format(description,
                                                     processtime,
                                                     tqdm["rte"],
                                                     tqdm["itm"],
                                                     tqdm["pct"])

        position = tqdm["pct"].replace("%", "")
        position = int(position) if position.isdigit() else 0 </s> remove                                 self.selected_id.get())
 </s> add                                 self.selected_id.get(),
                                datapoints) </s> remove         toplevel.tk.call('wm', 'iconphoto', toplevel._w, get_images().icons["favicon"])
 </s> add         toplevel.tk.call(
            'wm',
            'iconphoto',
            toplevel._w, get_images().icons["favicon"])  # pylint:disable=protected-access
            batchsize = self.session.total_batchsize.get(sess_idx, 0)
          compiled = list()
          for sess_idx, ts_data in self.time_stats.items():
              iterations = self.session.get_iterations_for_session(sess_idx)
              elapsed = ts_data["end_time"] - ts_data["start_time"]
            batchsize = self.session.total_batchsize.get(sess_idx, 0)
              compiled.append({"session": sess_idx,
                               "start": ts_data["start_time"],
                               "end": ts_data["end_time"],
                               "elapsed": elapsed,
                               "rate": (batchsize * iterations) / elapsed,
keep keep keep keep replace 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/stats.py