Implemented initial conditions with local non-Gaussianity#26
Implemented initial conditions with local non-Gaussianity#26tsfloss wants to merge 4 commits intoeelregit:masterfrom
Conversation
…l primordial non-Gaussianity in linear_modes
|
Hey Yin, we're planning to do some field-level inference with fnl using this code, let us know what you think and if you're happy for us to merge! |
|
Hi Thomas and Adrian, |
|
Hey Yin, sorry for the late reply! Indeed padding by 1.5x would already be good enough, but the padding steps do not seem to slow down the IC generation significantly. I leave that choice up to you, happy to help if needed! Indeed I had to disable the checkpoint decorator because of some error, but I'm not sure what is the right thing to do there! Best, |
I modified the IC generator to allow for local non-Gaussianity, to this end I added a new cosmology parameter f_nl_loc and a new function to give the linear transfer function (linear_transfer) in the same spirit as the linear power spectrum (linear_power). The ICs are generated on a 2x larger grid, to make sure that squaring the field does not lead to aliasing effects, afterwards generating it downsamples to the target grid.