From da3a56637e2b1c562a9854669229a399b6c38cfb Mon Sep 17 00:00:00 2001
From: Michael DM Dryden <mdryden@chem.utoronto.ca>
Date: Mon, 3 Apr 2017 17:20:08 -0400
Subject: [PATCH] Save: Switch to tab-separated output.

---
 dstat_interface/experiments/experiment_template.py | 2 +-
 dstat_interface/interface/save.py                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dstat_interface/experiments/experiment_template.py b/dstat_interface/experiments/experiment_template.py
index a6fc978..96888d4 100755
--- a/dstat_interface/experiments/experiment_template.py
+++ b/dstat_interface/experiments/experiment_template.py
@@ -295,7 +295,7 @@ class Experiment(object):
         """Return dict of strings with experiment parameters and data."""
         buf = {}
         buf['params'] = self.get_info_text()
-        buf.update({exp : df.to_string() for exp, df in self.df.items()})
+        buf.update({exp : df.to_csv(sep='\t') for exp, df in self.df.items()})
         
         return buf
         
diff --git a/dstat_interface/interface/save.py b/dstat_interface/interface/save.py
index 515b4d9..8cba566 100755
--- a/dstat_interface/interface/save.py
+++ b/dstat_interface/interface/save.py
@@ -42,7 +42,7 @@ def manSave(current_exp):
                                  Gtk.STOCK_SAVE, Gtk.ResponseType.OK))
     
     filters = [Gtk.FileFilter()]
-    filters[0].set_name("Text (.txt)")
+    filters[0].set_name("Tab-separated Text (.txt)")
     filters[0].add_pattern("*.txt")
 
     fcd.set_do_overwrite_confirmation(True)
-- 
GitLab