MISC: index with float is deprecated in numpy