Commit 31e1e6a
committed
Fix PSF position shift inversion, kernel accumulation, and ref baseline
psf_photom.py:
- psf_position: invert finite check so invalid (NaN/inf) ext_shift is
zeroed rather than valid shifts being discarded
- minimize_psf_flux: convolve a local copy of self.psf with the kernel
instead of mutating self.psf in-place; previously each optimizer
iteration re-convolved the already-convolved PSF, progressively
broadening it through the fit
tessreduce.py:
- reduce: replace nanmin with nanpercentile(1) for reference baseline
removal in difference imaging mode; nanmin is dominated by a single
outlier negative pixel (cosmic ray, bad pixel), biasing every
difference frame by that amount
helpers.py:
- _clip_region: fix image[rx,ry] → image[ry,rx] in threshold check
so mask is applied to the same pixels as the sigma-clipped stats
- grad_clip_fill_bkg: fix component size arrays to cover labels
1..n_objects (exclude background label 0, include last component)1 parent 4fd2f1b commit 31e1e6a
2 files changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
| 218 | + | |
220 | 219 | | |
221 | | - | |
| 220 | + | |
222 | 221 | | |
223 | 222 | | |
224 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2763 | 2763 | | |
2764 | 2764 | | |
2765 | 2765 | | |
2766 | | - | |
| 2766 | + | |
2767 | 2767 | | |
2768 | 2768 | | |
2769 | 2769 | | |
| |||
0 commit comments