Uh oh!
There was an error while loading. Please reload this page.
PSF interpolation order - #950
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## main #950 +/- ##
==========================================
+ Coverage 75.18% 75.60% +0.42%
==========================================
Files 70 70 Lines 9025 8981 -44 ==========================================
+ Hits 6785 6790 +5 + Misses 2240 2191 -49 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ecdeddd to
01be691Compare
teutoburg
left a comment
There was a problem hiding this comment.
A few comments about x and y, but I assume you made sure those are correct, so the comments are more for me to understand.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The indexing issue needs more work. The current implementation seems to produce a 90 degree rotation of the PSF.
oczoske
commented
Jul 8, 2026
I've checked the coordinate order and made some adjustments. It should be consistent now. Have a look at the attached notebook, too. |
teutoburg
commented
Jul 9, 2026
The notebook fails with |
oczoske
commented
Jul 10, 2026
The notebook is not meant for publication, so just adapt the path. Sorry for the inconvenience. |
Uh oh!
There was an error while loading. Please reload this page.
This PR reverts the interpolation method used for the PSF back from
RegularGridInterpolatortoRectBivariateSpline. The appeal ofRegularGridInterpolatorwas the availability of thepchipmethod, which however turns out to be not usable for 2D interpolation (excessive memory requirement).RectBivariateSplineis faster.From a user perspective, the PSF interpolation methods opens up the interpolation order as a user-settable parameter,
!SIM.psf.interp_order. For consistency, we also define!SIM.psf.interp_psf(formerly!OBS.interp_psf) to control whether the PSF is scaled to each wavelength slice of a spectral cube or just once to the central wavelength.