[Avida-cvs] [avida-svn] r965 - branches/developers/avida-edward/source/python/AvidaGui2
baerb at myxo.css.msu.edu
baerb at myxo.css.msu.edu
Thu Sep 14 13:07:01 PDT 2006
Author: baerb
Date: 2006-09-14 16:07:01 -0400 (Thu, 14 Sep 2006)
New Revision: 965
Modified:
branches/developers/avida-edward/source/python/AvidaGui2/pyPetriDishCtrl.py
branches/developers/avida-edward/source/python/AvidaGui2/pyWriteGenesisEvent.py
Log:
Latest attempt to fix m_cell_num_ancestor_name_dict
Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyPetriDishCtrl.py
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyPetriDishCtrl.py 2006-09-14 02:57:31 UTC (rev 964)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyPetriDishCtrl.py 2006-09-14 20:07:01 UTC (rev 965)
@@ -198,8 +198,13 @@
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]
+ # print "BDB"
+ # print m_founding_cells_dict
+ # print self.m_session_mdl.m_ancestors_dict
+ # org_in_founding_cell = v
+ # linage_lable_in_cell = ancestor_link_dict[org_in_founding_cell]
+ # ann_name_in_cell = session_mdl.m_ancestors_dict[linage_lable_in_cell]
+ # self.m_session_mdl.m_cell_num_ancestor_name_dict[k] = ann_name_in_cell
cell_info_item.setPen(QPen(QColor(Qt.gray)))
descr("BDB" + str(self.m_session_mdl.m_cell_num_ancestor_name_dict))
Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyWriteGenesisEvent.py
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyWriteGenesisEvent.py 2006-09-14 02:57:31 UTC (rev 964)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyWriteGenesisEvent.py 2006-09-14 20:07:01 UTC (rev 965)
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
-from descr import descr
import shutil, string, pyInstructionSet, os.path
from AvidaCore import *
@@ -74,13 +73,14 @@
self.start_cell_location = self.find_location(world_x, world_y,
num_ancestors, i)
cells_dict[str(self.start_cell_location)] = str(i)
- descr("cells_dict ", cells_dict)
# This variable is used in pyPetriDishCtrl.py to outline the
# founding organisms
self.m_session_mdl.m_founding_cells_dict = None
self.m_session_mdl.m_founding_cells_dict = cells_dict
+ self.m_session_mdl.m_cell_num_ancestor_name_dict[str(self.start_cell_location)] = session_mdl.m_ancestors_dict[str(i)]
+ print self.m_session_mdl.m_cell_num_ancestor_name_dict
# Read the genome from the dictionary
More information about the Avida-cvs
mailing list