-
Notifications
You must be signed in to change notification settings - Fork 30
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
Shear validation test: high-z bug fixes and mag cut implemented #149
Conversation
@cwwalter @patricialarsen Please see the plot above in answer to you question about the level of agreement between the theory and catalog over the full range of redshifts provided in the catalog. (The plot we showed this morning was only for z=0.6) Thanks Patricia for updating this test. |
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.
@patricialarsen thanks for the PR. I made several comments. Also, n_s
and sigma_8
are available in the cosmology
attribute for most catalogs. What's the purpose of f1
?
@yymao thanks for the comments, I've addressed these all. f1 was just for my own debugging - this has been removed. I don't see an ns or sigma8 value in the cosmology instance - how do I access these? |
@patricialarsen Here's an example of accessing cat = GCRCatalogs.load_catalog('cosmoDC2_v0.1')
cat.cosmology.n_s
cat.cosmology.sigma8 If you didn't find |
@patricialarsen also, I think the adding the native quantity mag name in the test config is also not ideal. We should really be using the mag name in the schema. |
Just pushing an update now - magnitude cut is now on the proper schema value in the config file as well as the test default. I have also included the n_s and sigma_8 values properly when available. The test runs fine on cosmoDC2_v0.2 when a maximum redshift value of 1 is used. Note though that the default redshift range of this test has been extended up to 3, which will cause issues if you're using a protoDC2 catalog. So before the proper base cosmoDC2 is out you probably want to cut the maximum redshift in the config file to 1 for testing.. |
|
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.
I added some inline comments, but I have some other comments that are coming in a bit.
|
Lines 94-95: use |
Lines 134-136: |
Line 142: |
Lines 185-188: Store the mask |
@patricialarsen sorry for my unorganized review comments. Most of them came to me after I reading a bit more into the code. You mentioned about the redshift range won't work for protoDC2. Is that mostly due to how the tomographic bins are set up (i.e., https://github.com/LSSTDESC/descqa/blob/22b4001/descqa/shear_test.py#L303)? Can we check the max redshift ( |
@yymao sorry for the delay in this - in the latest commit I fixed the maximum redshift as suggested and think I fixed all the other minor issues you mentioned but that was a week or two back so I should probably recheck and make sure I didn't miss any. |
Required as time has passed since the pull request, need to update several tests
…into shear_fixes These differ presumably due to update from other clone or web server, need to merge to update
@yymao I have double-checked the corrections mentioned in your review, updated with respect to the master, and verified that this still runs. The travis build doesn't complete seemingly due to an issue with the camb installation. To remind you of the changes here:
There's one new change, which is to incorporate the redshift and magnitude cuts properly into the jackknife part of the code so that it's consistent with the other updates. At least on my end I think this pull request is ready to be merged. |
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.
Thanks @patricialarsen. I made some minor linter/style suggestions. Otherwise this looks good!
Co-Authored-By: patricialarsen <tricia340@gmail.com>
Co-Authored-By: patricialarsen <tricia340@gmail.com>
Co-Authored-By: patricialarsen <tricia340@gmail.com>
Co-Authored-By: patricialarsen <tricia340@gmail.com>
Co-Authored-By: patricialarsen <tricia340@gmail.com>
Co-Authored-By: patricialarsen <tricia340@gmail.com>
Co-Authored-By: patricialarsen <tricia340@gmail.com>
Co-Authored-By: patricialarsen <tricia340@gmail.com>
@yymao thanks for the suggestions! I've committed them all, and have run the test again to double check everything is still working. |
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.
Thanks @patricialarsen. Once it passes the CI test we can merge this.
The updates for the test are as follows:
There was a bug stopping the theory correlations being computed above redshift 2, I've also added a magnitude cut for a magnitude quantity and limit defined in the yaml file (note that current default is for umachine set-up) to let the test run in a more reasonable time-frame.
The portal link should be: https://portal.nersc.gov/project/lsst/descqa/v2/?run=2018-08-24_15