-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extract from imagehdu so that full fov is covered #238
Conversation
Incidentally, |
Oh dear, failing tests. These need to be sorted. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## dev_master #238 +/- ##
==============================================
- Coverage 75.41% 75.15% -0.26%
==============================================
Files 149 152 +3
Lines 15283 15668 +385
==============================================
+ Hits 11525 11775 +250
- Misses 3758 3893 +135
☔ View full report in Codecov by Sentry. |
Sorted. The function needed protection against accessing pixels outside the ImageHDU. |
Thank you @oczoske. Tagging #209. I'll merge. Maybe this missing protection against accessing pixels outside the ImageHDU was also the root cause of the MICADO notebooks failing for 4k*4k simulations back when you first tried to fix the off-by-one-error. Unfortunately I cannot now find the issue / PR where we discussed that. That is, the original rounding code would usually round in the 'right' direction, but occasionally in the 'wrong' direction, which would only happen for simulations of large detectors. Your protection would probably fix that, so one step closer to doing this properly. |
This fixes #211, compare
micado_vs_psf_ncpa_ycut_correct.pdf to the figure linked there. Instead of looking at the pixel edges I replaced
round()
by the more appropriatefloor()
andceil()
functions and made sure that the proper pixel range is included.