-
Notifications
You must be signed in to change notification settings - Fork 13
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
Run THELI on shapepipe part 1 #617
base: develop
Are you sure you want to change the base?
Conversation
Add the label for the PR. Otherwise looks good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please set the label of the PR.
@@ -813,7 +813,6 @@ def do_ngmix_metacal( | |||
|
|||
weight_map = np.copy(weights[n_e]) | |||
weight_map[np.where(flags[n_e] != 0)] = 0. | |||
weight_map[weight_map != 0] = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will create an issue. Line 859 there is weight_map *= 1 / sig_noise ** 2
if the weight_map is not equal to 1 it will lead to weird behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for theli weights, there are relative weights between pixels, which then need to be rescaled by the sky background variance to become variance maps. Thomas Erban seemed to think this operation was okay. are you talking about the weirdness associated with some megaprime weight maps that are not always 1 or 0?
Summary
Reviewer Checklist
develop
branch