Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Fscale in ngmix_runner #609

Closed
aguinot opened this issue Jan 24, 2023 · 1 comment
Closed

[BUG] Fscale in ngmix_runner #609

aguinot opened this issue Jan 24, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@aguinot
Copy link
Contributor

aguinot commented Jan 24, 2023

To handle the different zero_point on single exposures while doing the multi-epoch processing, the images need to be rescale. The same rescaling needs to be apply on the weight to be consistent. This done at this line. But latter the weights are to 1 before being recomputed and then we lost the rescaling.

We should remove the part where the weights are set to 1. Also, the weights should be computed outside the ngmix_runner. See #604

Thanks to @lbaumo for finding that!

@aguinot aguinot added the bug Something isn't working label Jan 24, 2023
@aguinot
Copy link
Contributor Author

aguinot commented Jan 25, 2023

Ok, false alarm 😮‍💨
So it is very badly handle in the code but there is no problem actually. The noise variance is measured on the galaxy stamps that are scaled so it is propagated to the weights. It is really hidden in the code and something like that should appear very clearly! (to avoid exactly this kind of issues)

To fix this, as mentioned in issue #604, the weights should be measure outside ngmix. So we can keep the line 432 and remove the line 816 where the weights are set to 1 (of course the line 860 will also need to be removed.)

I am closing this issue since there is no actual "bug" in the code as it is but a poorly implementation 😕

@aguinot aguinot closed this as completed Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants