Closed alexblnn closed 2 years ago
The line region_size = len(res[res > tdp]) assumes that res is a decreasingly sorted array, such that the maximum region size is equal to the number of regions verifying the condition, which is false.
fixed by commit
The line region_size = len(res[res > tdp]) assumes that res is a decreasingly sorted array, such that the maximum region size is equal to the number of regions verifying the condition, which is false.