Skip to content

Commit

Permalink
Fix again select_bursts.consecutive
Browse files Browse the repository at this point in the history
  • Loading branch information
tritemio committed Jan 22, 2015
1 parent f9300c8 commit 869eaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fretbursts/select_bursts.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def consecutive(d, ich=0, sep1=0, sep2=np.inf, kind='both'):
bursts_mask = np.zeros(d.num_bursts[ich], dtype=bool)
if kind in ['first', 'both']:
bursts_mask += np.hstack([pair_mask, (False,)])
elif kind in ['second', 'both']:
if kind in ['second', 'both']:
bursts_mask += np.hstack([(False,), pair_mask])
return bursts_mask, ''

Expand Down

0 comments on commit 869eaf2

Please sign in to comment.