Expose actually used PSF kernel

Aperta
#937 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Read PSF.get_kernel() and the PSF subclass overrides, including FieldConstantPSF, then trace where rotational blur and rounded edges are applied before convolution. Decide how to expose the final convolution kernel while preserving the cached raw kernel across repeated .observe() calls. Done when callers can inspect the kernel actually applied, including when those effects are enabled.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

effects

While the "raw" kernel is already available through PSF.kernel (only after .get_kernel() is called, which happens during .apply_to(), but that's fine), this is not necessarily the kernel that's actually used in the PSF convolution. Specifically, rotational blur and rounded edges are conditionally applied to the kernel before convolution, but the result is not written back into PSF.kernel. The primary use case is PSF photometry of the simulated image, which would benefit from having easy access to the kernel that was actually applied to the image, even if those two additional effects are used.

Why this is not as simple as just writing the modified kernel back to PSF.kernel? For multiple .observe() calls on the same optical train, the PSF kernel is "cached" in the effect (see PSF.get_kernel(), which is overridden in the various subclasses, e.g. FieldConstantPSF). Parameters controlling e.g. rotational blur might change in between. A possible solution would be to save the final kernel in a separate attribute (e.g. final_kernel or convolution_kernel or used_kernel), or alternatively to rename .kernel to .raw_kernel and use the .kernel attribute for the final one.

Lingua principale
Python
Stelle
42
Fork
30
Merge medio
2g 22h
PR unite (30g)
7

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AstarVienna/ScopeSim

Tutte le issue di AstarVienna/ScopeSim

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.