Move flux binning to `ImagePlane`?

Aperta
#723 2 commenti 0 reazioni 4 assegnatari Vedi su GitHub

@hugobuddel ci sta già lavorando.

Dal 3/7/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

effects optics refactor

The ImagePlane should only store binned flux values (i.e. photons per second). In between (i.e. in and around the FOV), we (sometimes in imaging, always in spectroscopy) need to work with differential units. The location where the binning is done varies:

  • In imaging, this is done inside the FieldOfView.make_xy() methods for each field.
  • In normal spectroscopy, this is done somewhere in the depths of the spectral trace classes.
  • In simple IFU mode, this is done in the separate FluxBinning3D effect (because we never go to the spectral traces).

Think about the last case again, I'm unsure if it was a good idea to create that effect or not. There appears to be an alternative, which is to do this inside ImagePlane.add(). Especially once the flattening is moved there (see #721), the current (rudimentary) BUNIT checks there might be expanded to catch incoming non-binned data and bin it right there and then, before adding to the ImagePlane.

But that also goes into the whole discussion of #692. We (all) should at some point make a Grundsatzentscheidung, whether we want to move all "physical type changes" (see also the new flowchart) into Effects (meaning a yes to #692, but a no to this here), or rather keep these things mostly in optics classes (the other way around).

I suggest discussing this between all of @AstarVienna/scopesim-devs after Leiden.

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.