Skip to content

Commit

Permalink
Cleaned up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tcstewar committed Sep 1, 2015
1 parent 9ac1b75 commit 451dd20
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nengo_gui/components/spike_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ def remove_nengo_objects(self, page):

def gather_data(self, t, x):
self.max_value = max(self.max_value, np.max(x))

# TODO: pass only spiking neurons, using subclass of Nengo.Image?
# Considerations include how to filter if we're only passing spike
# times, i.e. need to write a new DataStore.
if len(x) > self.n_neurons:
x = x[:self.n_neurons]
y = np.zeros(self.n_pixels, dtype=np.uint8)
Expand All @@ -56,7 +52,7 @@ def update_client(self, client):
try:
client.write(item, binary=True)
except:
# if there is a communication problem, just drop the frame
# if there is a communication problem, just drop the frames
# (this usually happens when there is too much data to send)
pass

Expand Down

0 comments on commit 451dd20

Please sign in to comment.