-
Notifications
You must be signed in to change notification settings - Fork 3
Binned quantities #162
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
base: develop
Are you sure you want to change the base?
Binned quantities #162
Conversation
cailmdaley
left a comment
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.
Review: Two critical issues to fix
Thanks for extending the binned quantities functionality! Found two issues that will prevent the notebook from running:
1. Stray s on line 143 of leakage_minimal.py
# Line 143-144
s
quantities, bin_edges = calibration.get_quantities_binned(...)This will raise a NameError. Should be removed.
2. Undefined variable which in leakage_minimal.py:144
quantities, bin_edges = calibration.get_quantities_binned(cat_gal, num_bins_x, num_bins_y, which=which)The variable which is never defined in the notebook. Probably needs something like:
which = ["number", "response", "leakage", "w_iv", "mag", ...]Minor items (non-blocking):
- Duplicate
import numpy as npinplot_binned_quantities.py:16 - Commented-out matplotlib inline block could be cleaned up
Otherwise looks good! 👍
cailmdaley
left a comment
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.
Review: Two critical issues to fix
Thanks for extending the binned quantities functionality! Found two issues that will prevent the notebook from running:
1. Stray s on line 143 of leakage_minimal.py
This will raise a NameError. Should be removed.
2. Undefined variable which in leakage_minimal.py:144
The variable which is never defined in the notebook. Probably needs to be defined before calling get_quantities_binned().
Minor items (non-blocking):
- Duplicate
import numpy as npinplot_binned_quantities.py:16 - Commented-out matplotlib inline block could be cleaned up
Otherwise looks good!
|
Bugs fixed. |
Compute various catalogue quantities binned in SNR and size, for illustration and testing.