-
Notifications
You must be signed in to change notification settings - Fork 40
ENH: Halos from COLOSSUS joint mass-redshift distributions #452
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
Conversation
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.
- Some typos in doc-strings,
- warnings, issue with Planck18
- and some questions
Co-authored-by: Lucia F. de la Bella <[email protected]>
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.
- As we discussed with the galaxies module, the splitting into
redshift
and<quantity>
functions is a relic of when we could not multiassign columns. There should only be a single function that returns redshifts and properties. - The output shape is
(2, nhalos)
. As we discussed around the multiassignment, we want functions to return(nrows, ncolumns)
.
In that case (where) should
I'm not sure yet if that is the best way to address multiassignment; for anybody not using the Pipeline class it is natural for a function to return a tuple of different properties. Regardless I would rather merge as is than have this PR held up waiting for multiassignment to be updated on the main branch. |
There should only be one function. It goes through everything sequentially anyway.
I don't want to have another API in the codebase that we already know needs changing. And I think you once pointed out to me that multiassignment assumes I was very much in the "columns like tuples" camp, but I am now very much in the "columns as columns" camp, because you cannot easily stack the former. |
|
There's nothing that needs to be fixed? Only code in this PR needs to be changed in order to align with what we decided we wanted the galaxies code to look like. That is i) unroll the |
Sorry, I thought (ii) in you suggestion also required a change to |
|
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.
After some local discussion, we agreed to merge this as is and then try to sort out the questions across the codebase separately.
Description
Implements
colossus_mf_redshift
andcolossus_mf
allowing users to (jointly) sample the redshifts (and masses) of dark matter halos for any of the mass functions in COLOSSUS. The structure of this new code mirrors the Schechter luminosity/mass functions in the galaxies module.Checklist