[Avida-SVN] r2643 - branches/developers/avida-edward/source/python/AvidaGui2

baer at myxo.css.msu.edu baer at myxo.css.msu.edu
Wed Jun 11 12:37:27 PDT 2008


Author: baer
Date: 2008-06-11 15:37:26 -0400 (Wed, 11 Jun 2008)
New Revision: 2643

Modified:
   branches/developers/avida-edward/source/python/AvidaGui2/pyAvidaStatsInterface.py
   branches/developers/avida-edward/source/python/AvidaGui2/to-do_list
Log:

Fixed problem with the order widnows pub up when you export data



Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyAvidaStatsInterface.py
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyAvidaStatsInterface.py	2008-06-11 14:47:14 UTC (rev 2642)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyAvidaStatsInterface.py	2008-06-11 19:37:26 UTC (rev 2643)
@@ -69,12 +69,6 @@
   def export(self, paths):
     """Export stats to a file.  Can export multiple populations now.
     paths is a array of tuples containing short name and full path. """
-    dialog_caption = "Export Data"
-    fd = QFileDialog.getSaveFileName("", "Text -- Excel compatible (*.txt);;CSV  -- Excel compatible (*.csv)", None,
-                                     "export as", dialog_caption)
-    filename = str(fd)
-    if (filename[-4:].lower() != ".txt"):
-      filename += ".txt"
 
     checks = []
     # dictionary indexed by stat name so we can lookup stats to export
@@ -87,6 +81,8 @@
         checks.append(stat.name)
       stat_cnt += 1
 
+    dialog_caption = "Export Data"
+
     dialog = pyButtonListDialog(dialog_caption, "Choose stats to export",
                                 checks, True)
     # enable checkboxes
@@ -97,6 +93,12 @@
     if res == []:
       return
 
+    fd = QFileDialog.getSaveFileName("", "Text -- Excel compatible (*.txt);;CSV  -- Excel compatible (*.csv)", None,
+                                     "export as", dialog_caption)
+    filename = str(fd)
+    if (filename[-4:].lower() != ".txt"):
+      filename += ".txt"
+
     data = {}
 
     # Load stats for selected exports

Modified: branches/developers/avida-edward/source/python/AvidaGui2/to-do_list
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/to-do_list	2008-06-11 14:47:14 UTC (rev 2642)
+++ branches/developers/avida-edward/source/python/AvidaGui2/to-do_list	2008-06-11 19:37:26 UTC (rev 2643)
@@ -5,13 +5,14 @@
 Problems/Sugguestions from Rob 27-May-2008:
 
 Folders with character 166 (function character) can not have workspaces 
-creeated in them or read from them.
+creeated in them or read from them. -- Did not fix.
 
-Label for popluation map (i.e. "Fitness", etc.) legend should be larger.
+Label for popluation map (i.e. "Fitness", etc.) legend should be larger. --
+Did not fix.
 
-Four tick marks (instaed of current three) for pop map legend.
+Four tick marks (instaed of current three) for pop map legend. -- Kaben fixed.
 
-Default grid size changed to 60x60
+Default grid size changed to 60x60 -- Fixed.
 
 Some times Org report on population view shows org can do task that it can't
 do in the organism viewer.




More information about the Avida-cvs mailing list