Skip to content

Commit

Permalink
FIX: select_bursts.size function broken for multispot
Browse files Browse the repository at this point in the history
  • Loading branch information
tritemio committed Sep 26, 2016
1 parent 9dd13db commit f05e807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fretbursts/select_bursts.py
Expand Up @@ -163,7 +163,8 @@ def size(d, ich=0, th1=20, th2=np.inf, gamma=1., add_naa=False, beta=1.,
briefly describe the selection.
"""
assert th1 <= th2, 'th1 (%.2f) must be <= of th2 (%.2f)' % (th1, th2)
kws = dict(gamma=gamma, add_naa=add_naa, beta=beta, donor_ref=donor_ref)
kws = dict(ich=ich, gamma=gamma, add_naa=add_naa, beta=beta,
donor_ref=donor_ref)
burst_size = d.burst_sizes_ich(**kws)
if d.nch > 1 and (np.size(th1) == d.nch):
th1 = th1[ich]
Expand Down

0 comments on commit f05e807

Please sign in to comment.