[Avida-cvs] [avida-svn] r923 - branches/developers/avida-edward/source/python/AvidaGui2

baerb at myxo.css.msu.edu baerb at myxo.css.msu.edu
Sat Sep 2 07:51:16 PDT 2006


Author: baerb
Date: 2006-09-02 10:51:16 -0400 (Sat, 02 Sep 2006)
New Revision: 923

Modified:
   branches/developers/avida-edward/source/python/AvidaGui2/pyPetriDishCtrl.py
   branches/developers/avida-edward/source/python/AvidaGui2/pyWriteGenesisEvent.py
Log:

Finished work on self.m_session_mdl.m_cell_num_ancestor_name_dict for empty 
dishes.



Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyPetriDishCtrl.py
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyPetriDishCtrl.py	2006-09-01 22:09:14 UTC (rev 922)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyPetriDishCtrl.py	2006-09-02 14:51:16 UTC (rev 923)
@@ -195,10 +195,13 @@
 
     if self.m_avida is not None:
       m_founding_cells_dict = self.m_session_mdl.m_founding_cells_dict
-
+      self.m_session_mdl.m_cell_num_ancestor_name_dict = {}
       for k, v in m_founding_cells_dict.iteritems():
         cell_info_item = self.updateCellItem(int(k))
+        self.m_session_mdl.m_cell_num_ancestor_name_dict[k] = \
+          self.m_session_mdl.m_ancestors_dict[v]
         cell_info_item.setPen(QPen(QColor(Qt.gray)))
+      descr("BDB" + str(self.m_session_mdl.m_cell_num_ancestor_name_dict))
 
     self.m_thread_work_cell_item_index = 0
     self.m_cs_min_value = 0

Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyWriteGenesisEvent.py
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyWriteGenesisEvent.py	2006-09-01 22:09:14 UTC (rev 922)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyWriteGenesisEvent.py	2006-09-02 14:51:16 UTC (rev 923)
@@ -66,7 +66,6 @@
 
         # Process all the ancestors
 
-        self.m_session_mdl.m_cell_num_ancestor_name_dict = {}
         for i in range(num_ancestors):
           start_creature = settings_dict["START_CREATURE" + str(i)]
           session_mdl.m_ancestors_dict[str(i)] = start_creature
@@ -82,8 +81,6 @@
 
           self.m_session_mdl.m_founding_cells_dict = None
           self.m_session_mdl.m_founding_cells_dict = cells_dict
-          # BDB -- Junk should be the name of the ancestor
-          self.m_session_mdl.m_cell_num_ancestor_name_dict[str(i)] = "junk"
 
           # Read the genome from the dictionary
 




More information about the Avida-cvs mailing list