Skip to content

Commit

Permalink
Fix select_bursts.consecutive
Browse files Browse the repository at this point in the history
  • Loading branch information
tritemio committed Jan 21, 2015
1 parent 335a5d0 commit fbf6a10
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 @@ -217,7 +217,7 @@ def consecutive(d, ich=0, sep1=0, sep2=np.inf, kind='first'):
"Invalid value for 'kind'. Valid values are %s" % str(kind_valids)

bseparation = bslib.b_separation(d.mburst[ich])*d.clk_p
burst_mask = (bseparation >= sep1)*(bseparation >= sep2)
burst_mask = (bseparation >= sep1)*(bseparation <= sep2)
if kind == 'first':
return np.hstack([burst_mask, (False,)])
elif kind == 'second':
Expand Down

0 comments on commit fbf6a10

Please sign in to comment.