Conversation
… and KDTree and rsd along z
…origin at infinity for box
lgarrison
left a comment
There was a problem hiding this comment.
Looks great, thanks! Just a few minor comments.
Also, can you add an entry to CHANGES.rst? You can make a section called New Features and add something like - HOD module now works with halo light cone catalogs [#28].
Could you also try adding a test to tests/test_hod.py? Just something that runs the LC HOD code and compares it to a saved result. There is a small halo LC output in the repo here that you can use as the input. It might be so small it breaks your code, but it does work with the CompaSOHaloCatalog reader, so it's worth trying.
abacusnbody/hod/prepare_sim.py
Outdated
| box0 = np.array([0., 0., 0.])-origin | ||
| box1 = np.array([0., 0., Lbox])-origin | ||
| box2 = np.array([0., Lbox, 0.])-origin |
There was a problem hiding this comment.
Is this specifically for the base simulation light cone geometry? Will it work with the huge box geometry?
There was a problem hiding this comment.
I see you have a comment about the huge box geometry below! But just to check: if we run sims with another LC geometry in the future, will this work with that? Even if it's too hard to generalize the code, could we add an error if the LightConeOrigins don't match what's expected for this code?
There was a problem hiding this comment.
yes sure! I'll add that -- I will also add indentation for box1 and box2. It should work for any origin but not any geometry (unless we have exactly one box or the current L-shape geometry) since this assumes either observer in the center or observer of an L-shaped geometry
|
Looks great, thanks @boryanah! One small thing I noticed while looking at the tests is that the |
|
Going to merge this and open an issue to remind us to look into the metadata question. |
|
Great, thanks! I agree we should add metadata to the mocks! We should also mark centrals and satellites in the |
Code that allows the user to generate light cone catalogs using Abacus HOD