dedupe icon indicating copy to clipboard operation
dedupe copied to clipboard

Index out of bounds exception

Open AMongeEntytle opened this issue 9 years ago • 3 comments

When trying to apply dedupe to a small dataset, there is a chance to get an index out of bounds exception if the algorithm is not able to find any blocked pairs when computing the threshold. The error happens on api.py:79 when trying to compute the recall value in case expected_dupes is empty. To be fair, I am feeding dedupe with a test dataset (30 records, all already deduped) but I guess it could be nice not to output an "Index out of bounds" exception, but state something like "No blocks could be computed.".

AMongeEntytle avatar Jan 24 '17 17:01 AMongeEntytle

Hi @AMongeEntytle, this should have gotten fixed in the last release. Can you try upgrading?

fgregg avatar Jan 24 '17 19:01 fgregg

Hi @fgregg, no I didn't sorry. I will update and come back with the status.

AMongeEntytle avatar Jan 24 '17 22:01 AMongeEntytle

Fixed in 1.6.1 (Error now is much more verbose). Thank you @fgregg !!

AMongeEntytle avatar Jan 24 '17 22:01 AMongeEntytle