Closed lukekorthals closed 3 months ago
Line 41 leads to ValueError: A value in x_new is above the interpolation range. with some value being a few decimals above the upper bound of 255.
ValueError: A value in x_new is above the interpolation range.
for p in range(nchan): f.append(interp1d(range(ncols), cols[:,p].T)(xx))
Using numpy fixed it for me
f.append(np.interp(xx, range(ncols), cols[:,p].T))
Thanks @lukekorthals . @iancharest or @jacob-prince can you review and commit?
Bug
Line 41 leads to
ValueError: A value in x_new is above the interpolation range.
with some value being a few decimals above the upper bound of 255.Solution
Using numpy fixed it for me