          if not savefile:
              logger.debug("No save file. Returning")
              return
  
          write_dicts = [val for val in self.summary.values()]
          fieldnames = sorted(key for key in write_dicts[0].keys())
  
          logger.debug("Saving to: '%s'", savefile)
          with savefile as outfile:
              csvout = csv.DictWriter(outfile, fieldnames)
              csvout.writeheader()
              for row in write_dicts:
 
</s> remove             for row in write_dicts:
 </s> add             for row in self.summary:
          if not savefile:
              logger.debug("No save file. Returning")
              return
  



          logger.debug("Saving to: '%s'", savefile)
          with savefile as outfile:
              csvout = csv.DictWriter(outfile, fieldnames)
              csvout.writeheader()
              for row in write_dicts:
keep keep keep keep replace replace replace keep keep keep keep keep
 GUI Bugfix: Fix csv saving in analysis tab 
lib/gui/display_analysis.py