Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Fixes in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Maruseac committed Apr 29, 2011
1 parent a7d94e2 commit ebbe78e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def notify_progress(self, p, end=False):
if end:
p = 1
self._nw.stop()
# READ DATA from network
self._nw = None
self._pBar.set_fraction(p)

Expand Down
6 changes: 4 additions & 2 deletions src/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def learn(self):
"""
Bootstraps the learning phase.
"""
self._gui.notify_progress(0)
self.start()

def stop(self):
Expand All @@ -88,8 +89,9 @@ def run(self):
if self._stopped:
return
self._gui.notify_progress((i + 0.0) / self._runs)
import time
time.sleep(1)
# import time
# time.sleep(1)
self._gui.notify_progress(1, True)

def _parse_activation(self, config):
"""
Expand Down

0 comments on commit ebbe78e

Please sign in to comment.