Skip to content

Commit

Permalink
Burst search: remove redundant slicing in pure-python burst search
Browse files Browse the repository at this point in the history
  • Loading branch information
tritemio committed Nov 27, 2015
1 parent c6d5681 commit 5f73cdc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fretbursts/burstsearch/burstsearchlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ def bsearch_py(times, L, m, T, slice_=None,
i_time0 = slice_[0]

bursts = []
max_index = times.size-m+1
above_min_rate = ((times[m-1:] - times[:max_index]) <= T)[:max_index]
above_min_rate = ((times[m-1:] - times[:times.size-m+1]) <= T)

it = enumerate(above_min_rate)
for i, above_min_rate_ in it:
Expand Down

0 comments on commit 5f73cdc

Please sign in to comment.