OpenSMFS / FRETBursts

Burst analysis software for single and multi-spot single-molecule FRET (smFRET) data.
https://opensmfs.github.io/FRETBursts/
GNU General Public License v2.0
13 stars 9 forks source link

Deprecation warning for np.sum #35

Open mayeshh opened 4 years ago

mayeshh commented 4 years ago

There is a deprecation warning for the use of np.sum which occurs twice in burstlib_ext.py.

I first tried replacing with np.sum(np.fromiter()) in bb2e9d9, raising a type error.

In another commit 5ac3153 I suggest a fix for this, replacing np.sum with the builtin sum.