Skip to content
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

Compute a CIC density field from galaxy catalog #18

Closed
EiffL opened this issue Apr 3, 2020 · 7 comments
Closed

Compute a CIC density field from galaxy catalog #18

EiffL opened this issue Apr 3, 2020 · 7 comments
Labels
enhancement New feature or request

Comments

@EiffL
Copy link
Member

EiffL commented Apr 3, 2020

This issue to add a functionality to compute a 3d CIC mesh from a galaxy catalog, from which we can then try to compute the power spectrum.
@modichirag Do you want to take care of that? Essentially, this would involve using FlowPM to CIC paint a galaxy density field from a galaxy catalog

@EiffL EiffL created this issue from a note in Differentiable HOD paper (To do) Apr 3, 2020
@EiffL EiffL added the enhancement New feature or request label Apr 3, 2020
@EiffL
Copy link
Member Author

EiffL commented Apr 3, 2020

Hum.... so I guess we already have this: https://github.com/DifferentiableUniverseInitiative/DHOD/blob/master/diffhod/experimental/nn/utils/tools.py

Should we use that or should we use flowpm tools instead?

@EiffL
Copy link
Member Author

EiffL commented Apr 3, 2020

oh wow, no sorry that's numpy code.

@EiffL EiffL added this to the paper:baseline milestone Apr 3, 2020
@modichirag
Copy link
Member

modichirag commented Apr 3, 2020 via email

@EiffL
Copy link
Member Author

EiffL commented Apr 3, 2020

Great :-D
I took a stab at it here, check it out: https://github.com/DifferentiableUniverseInitiative/DHOD/blob/u/EiffL/FlowPM/nb/PowerSpectrum.ipynb

This relies on this update of flowpm to make it nicely TF2 compliant: https://github.com/modichirag/flowpm/pull/43

@EiffL
Copy link
Member Author

EiffL commented Apr 24, 2020

Prototype is now working over there: https://github.com/DifferentiableUniverseInitiative/DHOD/blob/u/EiffL/FlowPM/nb/PowerSpectrum.ipynb
Not only does it computes a CIC field of a galaxy catalog, but also does the optimization.

I think this is working fine now, and we don't really need any other things than the cic painting tools in FlowPM. So I'm gonna say that this is pretty much done, and is just waiting on modichirag/flowpm#43

@EiffL EiffL moved this from To do to In progress in Differentiable HOD paper Apr 24, 2020
@EiffL
Copy link
Member Author

EiffL commented Aug 3, 2021

I think this is done.... what cic painting function are you using in practice @bhorowitz ?

@EiffL EiffL moved this from In progress to Done in Differentiable HOD paper Aug 3, 2021
@EiffL
Copy link
Member Author

EiffL commented Aug 3, 2021

We now have a cic painting code directly in the utils folder

@EiffL EiffL closed this as completed Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants