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

Fix crash on S8 sampling in example #319

Closed
wants to merge 4 commits into from
Closed

Conversation

elisachisari
Copy link
Contributor

Sampling over S8 in cosmic shear example file was broken. This is a quick fix.

@marcpaterno
Copy link
Collaborator

Elisa, can you tell us what version of the CosmoSIS Standard Library you are using? This seems to be reverting to an older version of the CSL; we would prefer, if possible, to move everyone to using the newer version.

If we need to support multiple inconsistent versions of CosmoSIS and CSL (and perhaps also NumCosmo, and Cobaya), we'll need to discuss how we should do so. We had the discussion for CCL, where the conclusion was ... don't support the older versions.

@marcpaterno
Copy link
Collaborator

@joezuntz In the current version of CosmoSIS, is the sigma8_rescale module deprecated? If not, if someone both sets sigma8 and uses the sigma8_rescale module, does anything weird happen? It appears that sigma8_rescale reads sigma8_input, which is already marked as deprecated.

@tilmantroester
Copy link
Contributor

As of v2.5 of the CSL (and v3.3.2 of cobaya), sigma8 can be used as an input to CAMB without approximations or notable performance hits, so earlier methods like sigma8_rescale or sigma8toAs aren't required any more.

@marcpaterno
Copy link
Collaborator

These changes would revert the example to use a configuration that was required by older versions of CosmoSIS. While it also works with the newer version of CosmoSIS the result is:

  1. less efficient, and
  2. does not deal correctly with non-linear power spectra coming from CAMB.

We would prefer to reject this PR (to not revert the configuration) unless there is a need to retain examples supporting the older version of CosmoSIS.

Is there such a need?

@elisachisari
Copy link
Contributor Author

Tried updating the environment to work with latest CSL and the sampling over S8 works out of the box. So I'm happy to close this.

@vitenti vitenti deleted the fix_s8_examples branch July 16, 2024 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants