Mercurial > repos > mvdbeek > dapars
diff dapars.py @ 21:eace1635959a draft
planemo upload for repository https://github.com/mvdbeek/dapars commit b1b007c561ea6c9db145c88b6b128d66ecd05e24-dirty
author | mvdbeek |
---|---|
date | Fri, 30 Oct 2015 12:08:20 -0400 |
parents | 71db297a0edd |
children | 4309798bfb61 |
line wrap: on
line diff
--- a/dapars.py Fri Oct 30 11:54:18 2015 -0400 +++ b/dapars.py Fri Oct 30 12:08:20 2015 -0400 @@ -365,7 +365,8 @@ get minima for numpy array a. If local is false, only return absolute minimum """ if not local_minimum: - return np.where(a == a.min()) + print np.where(a == a.min())[0] + return np.where(a == a.min())[0] else: return np.where(np.r_[True, a[1:] < a[:-1]] & np.r_[a[:-1] < a[1:], True])[0]+1