Skip to content
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

Fvpsf #403

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Fvpsf #403

wants to merge 9 commits into from

Conversation

hugobuddel
Copy link
Collaborator

Replacing #208, because we still want to add a field varying PSF

Preliminary implementation of GridFieldVaryingPSF for convolving FOVs with field-varying PSFs using interpolation. The implementation might look somewhat convoluted, and it does not rely on many existing Numpy and SciPy methods, but this is done purposely to enable Numba compilation and parallelization. Missing:
- Defining the structure of the input PSF grid;
- Reading PSF grid coordinates and perform correct positioning of the PSF;
- Kernel normalization;
- Expand for multiple wavelengths.
Release candidate of PSF effect using a grid of PSFs that are interpolated across the field. Working example, but further testing required. No multiple-wavelength compatibility yet.
- Compatibility with 3.5 lost (uses f-strings). Though these seem to be used in other places, so it probably was lost before.
- Some docstring incomplete, mostly due to obfuscated attributes or missing or not well-defined type hints.
Raising exceptions for pixels out of bounds during numba routines wasn't working, so it was removed and made it compulsory that the coordinates to be computed lie withing the PSF grid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

2 participants