Change GR flag from 1 to 0 in boltzmann.py#1257
Change GR flag from 1 to 0 in boltzmann.py#1257bastiencarreres wants to merge 1 commit intomasterfrom
Conversation
nikosarcevic
left a comment
There was a problem hiding this comment.
Hi, Bastien!
Thank you for this.
Can you please submit some plots that show how this fixes the problem?
There was a problem hiding this comment.
Only potential improvement is to add a check if there's any MG parameters actually being used in order to enable MG, e.g.
is_mg = (abs(cosmo.mg_parametrization.mu_0) > 0 or abs(cosmo.mg_parametrization.sigma_0) > 0 or abs(cosmo.mg_parametrization.lambda_mg) > 0) cp.GR = 0
if is_mg else 1 # GR==0 to allow MG in ISiTGR
But you can very easily convince me that the fact that someone is actively calling isitgr is enough to assume they're using MG, so the current modifications look good to me as is!
I think this check is still important to do. Before anyone approving this merge can we ask MG people to check of if @bastiencarreres can do it quickly? |
|
@Lhior @nikosarcevic |
carlosggarcia
left a comment
There was a problem hiding this comment.
There are test that are failing. They are related to the correlations functions. Can you check what's going on?
Currently the CI is failing on main. So every time you branch out to fix something you inherit the CI fails (I tihnk for me it is in bacco tests). Can you confirm that? also there is this circular import issue aside from the bacco test #1259 |
|
@carlosggarcia It seems that some of the failing tests are related to MG models, if the values the tests are using as baseline were computed using the GR = 1 flag (?), I guess that it cannot match. |
can we tag @Lhior to check this and help out? |
|
I believe what @carlosggarcia pointed out is exactly right, specifically the tests in After further investigation though, I have some questions... why is the tolerance in the classy implementation set to 1e-2 while the tolerance in the isitgr implementation set to 1e-4? If I set the classy tolerance to 1e-4, all |

Change the GR flag from 1 to 0 to activate modified gravity