[Avida-SVN] r1686 - branches/developers/avida-edward/source/python/AvidaGui2
jclune at myxo.css.msu.edu
jclune at myxo.css.msu.edu
Mon Jun 18 06:57:37 PDT 2007
Author: jclune
Date: 2007-06-18 09:57:37 -0400 (Mon, 18 Jun 2007)
New Revision: 1686
Modified:
branches/developers/avida-edward/source/python/AvidaGui2/pyNavBarCtrl.py
Log:
fixed bug where empty dish names were not showing up in the pop viewer when dragged into the viewer pane
Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyNavBarCtrl.py
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyNavBarCtrl.py 2007-06-18 07:44:03 UTC (rev 1685)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyNavBarCtrl.py 2007-06-18 13:57:37 UTC (rev 1686)
@@ -97,10 +97,13 @@
warningNoMethodName("You cannot drag more than one dish into the Population Viewer.")
else:
#note, the pop viewer gets raised on the receiving end in DefrostSlot in pyOnePop_PetriDishCtrl.py
- if(dropped_item_name[-5:] == '.full'):
+ descr(os.path.dirname(file_name))
+ if(file_name.endswith(".full")):
file_name = os.path.join(file_name, "petri_dish")
- dish_name = file_name[26:-16]
- descr("file_name", file_name)
+ dish_name = file_name[26:-16]
+ elif(file_name.endswith("empty")):
+ dish_name = file_name[26:-6]
+
thawed_item = pyReadFreezer(file_name)
#send defrost sig
More information about the Avida-cvs
mailing list