From: C. E. B. <ce...@us...> - 2007-12-30 03:09:04
|
Update of /cvsroot/topographica/topographica/topo/base In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv4534/topo/base Modified Files: simulation.py Log Message: Removed 'fake' hack; pattern_present calls run(0.0) before doing anything else, instead. Index: simulation.py =================================================================== RCS file: /cvsroot/topographica/topographica/topo/base/simulation.py,v retrieving revision 1.123 retrieving revision 1.124 diff -C2 -d -r1.123 -r1.124 *** simulation.py 29 Dec 2007 12:04:00 -0000 1.123 --- simulation.py 30 Dec 2007 03:09:06 -0000 1.124 *************** *** 1098,1107 **** self.timer.call_and_time(duration) ! # CEBALERT: added 'fake' to avoid problem with pattern_present causing ! # the true list of eps_to_start to get wiped out. ! # Maybe instead, run shouldn't clear out eps_to_start, but should ! # detect which haven't been started and just start those? ! # Or call 'fake' something better and document it... ! def run(self,duration=Forever,until=Forever,fake=False): """ Process simulation events for the specified duration or until the specified time. --- 1098,1102 ---- self.timer.call_and_time(duration) ! def run(self,duration=Forever,until=Forever): """ Process simulation events for the specified duration or until the specified time. *************** *** 1122,1127 **** e.start() ! if not fake: ! self.eps_to_start=[] --- 1117,1121 ---- e.start() ! self.eps_to_start=[] |