ENH: Halos from COLOSSUS joint mass-redshift distributions#452
ENH: Halos from COLOSSUS joint mass-redshift distributions#452rrjbca merged 8 commits intoskypyproject:module/halosfrom
Conversation
Lucia-Fonseca
left a comment
There was a problem hiding this comment.
- Some typos in doc-strings,
- warnings, issue with Planck18
- and some questions
Co-authored-by: Lucia F. de la Bella <55983939+Lucia-Fonseca@users.noreply.github.com>
ntessore
left a comment
There was a problem hiding this comment.
- As we discussed with the galaxies module, the splitting into
redshiftand<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 |
|
ntessore
left a comment
There was a problem hiding this comment.
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_redshiftandcolossus_mfallowing 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