jjhelmus / nmrglue

A module for working with NMR data in Python
BSD 3-Clause "New" or "Revised" License
209 stars 86 forks source link

Fix FutureWarning in peak picking #99

Closed andreasdoll closed 5 years ago

andreasdoll commented 5 years ago

Fix the following FutureWarning caused by a recent numpy version (at least 1.16.4, maybe even before that):

nmrglue/analysis/peakpick.py:398: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use arr[tuple(seq)] instead of arr[seq]. In the future this will be interpreted as an array index, arr[np.array(seq)], which will result either in an error or a different result. return np.atleast_1d(np.squeeze(data[s])

jjhelmus commented 5 years ago

Thanks for the fix @andreasdoll