-
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
Fix massdef in miscentering calculations and virial delta_mdef #662
Conversation
Thank you @hsinfan1996 - this was super efficient :) I confirm it behaves as expected for However, when So at the moment, having I see 2 options:
Maybe option 1 is sufficient for the time being? What do you think @hsinfan1996? |
I was thinking about virial massdef too. For the CCL backend, I can implement the function for getting Delta_vir right away. For NumCosmo, I think I know what function to use, but I will need some time to implement it. Hopefully, someone more familiar with NC can help me. So for now, I go for option 2. |
@combet I added the functions that calculate Delta_vir to the supported backends (NC<=0.22 for now). However, since getting Delta_vir requires the redshift, which is different from other mass definitions, I am thinking what is the best way to set Delta_vir to the cluster or for it to be utilized by other functions. Any ideas? @m-aguena |
To support virial massdef properly, all functions that call the relevant ones in generic.py have to get virial delta_mdef from the backends, so I added some functions to do the job. |
Thank you @hsinfan1996 - just tried things out and this worked perfectly and looks very good! Just checking with you if you're still making changes. Otherwise, I'm happy to go ahead and review/approve. Let me know if you need more time. |
@combet Thank you for testing the new implementations. I finished adding stuff and am satisfied with the changes. It would be awesome if you could start reviewing this PR. |
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.
Thank you @hsinfan1996 - all the changes look good and everything worked smoothly in both OO and functional interface.
I just left one minor comment/suggestion regarding clarifying a comment in the code. Waiting for your feedback on this and I'd be happy to approve.
I'll just note that this issue was not caught by the tests before and I wonder if we should expand the tests to also systematically include other massdef? But I think that that can be addressed in another issue if we decide to go in that direction because it's not only relevant for this particular functionality.
6e45c21
to
33b9ac2
Compare
33b9ac2
to
688ccce
Compare
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.
Thank you @hsinfan1996 for the quick update. All looks good to me!
Yes, right now we only test the default "mean" massdef. We probably need to add some tests on the other massdefs. |
No description provided.