Refactoring between `ImagePlane`, `FieldOfView`, `OpticalTrain` et al.

Aperta
#721 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@teutoburg ci sta già lavorando.

Dal 3/7/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

optics refactor

Just to keep track of a few things...

  • ImagePlane can now handle 2D and 3D data. In the 2D case, any incoming 3D data is flattened before being added to the ImagePlane via FieldOfView.flatten(). That method isn't used anywhere else, so I suggest moving that logic (really just one line) into ImagePlane.add(). I.e., if the ImagePlane itself is a 2D thing, flatten any incoming 3D data, in any other case just add (does the "2D data being added to 3D ImagePlane" case occur in the wild? Not that I would know. Might it in the future? IDK).
  • Figure out how to deal with sky WCS. Currently, we have "HACK: to get sky WCS from FOV into image plane..." in OpticalTrain.observe(), but only in the non-flattened case. If we move the flattening (see above), we should also find a proper solution here. AFAIK, in the flattened case, the sky WCS is re-computed in the end, but somehow that didn't work for the simple IFU mode.
  • There's still and old "..todo: finish off the multiple image plane stuff" in OpticalTrain.observe(). Discuss what that is and how to move on with it.
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.