Problem
subtract_overscan with model=... fits via astropy.modeling:
|
of = fitting.LinearLSQFitter() |
astropy's fitters operate on numpy internally (LinearLSQFitter ends up in np.linalg.lstsq), so CuPy input hits the implicit-conversion error. This matches the test_subtract_overscan_model failures noted in #910.
Options
Found during a review of the array API implementation from #885; follow-up to #909 / #910.
Problem
subtract_overscanwithmodel=...fits viaastropy.modeling:ccdproc/ccdproc/core.py
Line 616 in 9d25eee
astropy's fitters operate on numpy internally (
LinearLSQFitterends up innp.linalg.lstsq), so CuPy input hits the implicit-conversion error. This matches thetest_subtract_overscan_modelfailures noted in #910.Options
xp).xp.linalg.lstsqis in the array API linalg extension) could keep everything on-device.astropy.modeling(tracked in Tracking: upstream array-API blockers (astropy, reproject, astroscrappy) #940).Found during a review of the array API implementation from #885; follow-up to #909 / #910.