@ahojnnes : I am getting a `TypeError` on this line -- `TypeError: only length-1 arrays can be converted to Python scalars`. `left_sum_np` is a length-1 array. I tried googling but the issues were unrelated.