          logger.debug("Saving to: '%s'", savefile)
          with savefile as outfile:
              csvout = csv.DictWriter(outfile, fieldnames)
              csvout.writeheader()
              for row in write_dicts:
                  csvout.writerow(row)
  
  
  class Options():
      """ Options bar of Analysis tab """
 
</s> remove         write_dicts = [val for val in self.summary.values()]
        fieldnames = sorted(key for key in write_dicts[0].keys())

 </s> add 
            for row in self.summary:
          logger.debug("Saving to: '%s'", savefile)
          with savefile as outfile:
              csvout = csv.DictWriter(outfile, fieldnames)
              csvout.writeheader()
            for row in self.summary:
                  csvout.writerow(row)
  
  
  class Options():
      """ Options bar of Analysis tab """
keep keep keep keep replace keep keep keep keep keep
 GUI Bugfix: Fix csv saving in analysis tab 
lib/gui/display_analysis.py