-
Notifications
You must be signed in to change notification settings - Fork 66
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
Request for boost/pk2d output in Baryons module #1152
Comments
I don't think there's an easy way to do this right now. It would be great to have HMCode implemented natively (and that would solve this problem). Much of the infrastructure is actually there already, but it needs to be put together, which takes time... |
Seconding what David said. Having HMCode in the baryon challenge would be nice. |
hmmm, is there a way to pass boosted pk but as a numpy array (NOT as a Pk2D) into ccl.angular_cl()? I am trying to see if I can somehow construct a Pk2D boost factor myself for baccoemu and hmcode the way it was done for Schneider and VanDaalen but it is not clear to me immediately how to do it straightforwardly. |
so if I call include_baryonic_effects method on the BaccoemuBaryons like this
I get an error:
any ideas how to get around this? |
That's the issue I had mentioned, the Bacco range for a doesn't cover the default ranges in CCL. Options I see are setting the CCL spline ranges for the power spectrum to the BaccoEmu ranges, creating the |
so option 1 is to use something like I made in the CCLX notebook:
so I would need to convert another option is to use |
That's option 2. |
ok, so just to confirm -- I just need to make a list of scale factors (all equal to 1) and make a 2D array with k (nk x na) grid and then use that to construct pk2d? |
No, the scale factors need to span the range required for the Limber integrals. Have a look at the |
ok I coded this, I get the Pk2D within the k and a bounds
this works, but I would appreciate a sanity check from you two @tilmantroester @damonge |
Hi, David, all
Is there a chance/is it possible to get the boost for HMCode and BACCO in the same way as we do it for BCM and VanDaalen in Baryon module?
It would make the FISK migration to ccl v3 much easier.
Basically, I need a pk2d object rather than the numpy array.
I need it as pk2d object because this is the format that is required to pass to p_of_a_k argument when constructing the angular cls.
for example, this is exactly what I need:
or this
but NOT this
please tell me this can be somehow done? even if you do not plan to implement it into ccl, can you point me not the direction where I can make mods so within my code I have pk2d for hmcode and bacco
The text was updated successfully, but these errors were encountered: