Open samaloney opened 4 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 97.61%. Comparing base (
07772ed
) to head (b0e1fad
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Never mind it was the order of the interpolation.
So the test fail is due to deprecation of interp2d
but it seems the replacement RectBivarateSpline
doesn't give identical results for this case 🤯
from scipy.interpolate import RectBivariateSpline
data = fits.getdata(im171[0], ext=0) / (heda["EXPTIME"])
dn = scipy.interpolate.interp2d(x, x, data)
data_old = scipy.interpolate.interp2d(x, x, data)
rbs = RectBivariateSpline(x, x, data)
data_new = rbs(np.arange(0, 4096), np.arange(0, 4096))
(data_old - data_new).min()
# -866.2201822671041
(data_old - data_new).max()
# 394.46359265847195
plt.imshow(data_old - data_new)