Skip to content

Commit

Permalink
Allow leaving out bad channels from the channel graph, resolving issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamovar committed Apr 29, 2013
1 parent 447d267 commit d43de09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spikedetekt/floodfill.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ def connected_components(st_arr, ch_graph, s_back):
# in the graph defined by ch_graph in the case of edges, and
# j_s from i_s-s_back to i_s.
for j_s in xrange(i_s-s_back, i_s+1):
# allow us to leave out a channel from the graph to exclude bad
# channels
if i_ch not in mch_graph:
continue
for j_ch in mch_graph[i_ch]:
# label of the adjacent element
adjlabel = label_buffer[j_s, j_ch]
Expand Down

0 comments on commit d43de09

Please sign in to comment.