-
Notifications
You must be signed in to change notification settings - Fork 20
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
Issue/572/dataops redshift #596
Conversation
…components and compute_galaxy_weights
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.
https://github.com/LSSTDESC/CLMM/pull/596/files#diff-b0d44342af6305abba113e4054806c63583e6cd75effe601d322c6e56709e6afR227
This line of the docstrings is not correct. Now is_deltasigma
flag is removed from clmm.dataops.compute_tangential_and_cross_components
@combet @marina-ricci can one of you take a final look before I merge this? I would like a second pair of eyes on it since there are some API changes. The main changes here are on |
@m-aguena - thank you for pinging me again on this PR. I took a look this morning and left a couple of comments above. Let me know what you think. Also I have a follow up question below (that could be addressed in a subsequent issue/PR). You implemented this new approach for the functional interface only. The methods |
@combet, thanks for the comments. With regards to The argument |
Yes, I thought it would be more consistent with what we now have in the functional interface. i.e., the user need to make sure they have pre-computed This could/should be kept for another issue/PR until we carefully think about it. But I think it would be nice to try to keep a good symmetry between the functional and OO interface. |
…ents and dataops.compute_galaxy_weights
@combet , I agree that this is a good idea, and also to put it in another issue so we can think more carefully about it and also to move on with this one. I just created issue #599 for it. BTW, I just implemented the changes for the |
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 @m-aguena. Playing the demo_compute_weights
notebook gave errors in cell 9 and 13 because of the new _validate_is_deltasigma_sigma_c
check. I think the calls in these cells now need to explicitly have a is_deltasigma=True
.
Thanks @combet , good catch! |
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 @m-aguena. All looks good to me now!
clmm/utils/validation.py
Outdated
if is_deltasigma and sigma_c is None: | ||
raise TypeError("sigma_c (=None) must be provided when is_deltasigma=True") | ||
if not is_deltasigma and sigma_c is not None: | ||
raise TypeError(f"sigma_c (={sigma_c}) be provided when is_deltasigma=False") |
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.
raise TypeError(f"sigma_c (={sigma_c}) **should not** be provided when is_deltasigma=False")
Closes Issue #572 .
In the end, most functions could just change their input to
sigma_c
instead of implementingz_src, z_src_info
.