-
Notifications
You must be signed in to change notification settings - Fork 7
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
Simplify tomography files and mappers #317
Conversation
@empEvil did you have a chance to look at this? |
No not yet, I happened to get sick :( |
Get well soon! |
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.
Think it looks good. Are there any places the code could get confused now that the names have been removed? (lens and source)
Thanks for the review! As far as I can tell I've dealt with all the places where there's a name confusion. I'm sure we'll hit something else eventually! |
Could you approve if you're happy? |
Thanks!!! |
…in master from PR #317 (simplify tomography files and mappers)
Tomography files unnecessarily distinguish "source_bin" and "lens_bin" columns in files, making it harder to use them generically.
This changes this so that all tomo files have a set of common columns. At the same time, I removed the old TXMainMaps class, which assumed identical lens and source catalogs, because it would not work straightforwardly with this change (because both lens and source bins are now called "bin"), and rewrote the Mapper class as ShearMapper and LensMapper (it was never being used to do both at once outside TXMainMaps).
As a side point this finally does the source number count maps.
This was making the code more complicated than it needed to be when writing code to use QP and do truth photo-z summations.