tritemio / FRETBursts

Burst analysis software for smFRET. **Moved to OpenSMFS organization**
https://github.com/OpenSMFS/FRETBursts
GNU General Public License v2.0
16 stars 17 forks source link

Bursts.recompute_index_reduce bug #39

Closed tritemio closed 8 years ago

tritemio commented 8 years ago

In the rare case when the stop of a burst coincides with the last photon in the timestamps array AND the last two photons are the same timestamps (e.g. donor and acceptor channel registered a photon during the same 10ns time bin) then the method Bursts.recompute_index_reduce raises an error.

The problem is at this line:

and happens because it becomes bigger than times_reduced.size.

Kudos to @chungjjang80 for reporting this.