kammerje / spaceKLIP

Pipeline for reducing JWST high-contrast imaging data. Published in Kammerer et al. 2022 and Carter et al. 2022.
https://ui.adsabs.harvard.edu/abs/2022SPIE12180E..3NK/abstract
MIT License
16 stars 9 forks source link

[calcon] minor bug in calibrated contrast when using single KLmode instead of list of multiple modes #119

Closed raphhbw closed 8 months ago

raphhbw commented 8 months ago

Seems to be a bug in the code after computing the inj-recovery in the calibrated contrast curves when using PSF subtracted images that have a single KLmode (e.g. [10]) and not a list of multiple KLmodes (e.g. [10,20]). I initially calculated the contrast for a ADI+RDI reduction only using a 10 KLmode which generated this error. When considering a list of [10,20] KL mode instead, the code ran fine.

Error was on this vstack on line 593 (check image linked) but now should be on line 619 (code has been changed since).

Screenshot 2023-10-30 at 15 54 43

mperrin commented 8 months ago

@AarynnCarter can this issue be marked closed now? Fixed?