kkvishal / wlan-pos

Automatically exported from code.google.com/p/wlan-pos
0 stars 0 forks source link

dknn crashes when min element of sorted_sums is 0 #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
[['00:60:B3:C9:61:27' '00:16:16:1E:B9:80' '00:1A:70:FB:B8:7F'
  '00:17:7B:0F:16:D9']
 ['-63' '-64' '-65' '-66']]

sorted_sums[:idx_dkmin] bumps into indexing error cos idx_dkmin set to 0
when the minimum of sorted_sums is 0, add side='right' option to searchsorted()

Original issue reported on code.google.com by xiaotian...@gmail.com on 4 Apr 2010 at 1:18