Comments (9)
I took a look of the source code and sigma8 has inverted redshift
def get_sigma8(self):
r"""
Get :math:\sigma_8
values (must previously have calculated power spectra)
:return: array of :math:`\sigma_8` values, in order of increasing time (decreasing redshift)
"""
mtrans = self.get_matter_transfer_data()
return mtrans.sigma_8[:, 0]
while cobaya just returns the first element (the highest redshift). But then I have another question - how can we be sure that the last element is redshift zero. I couldn't find anywhere the z array that sigma_8 is evaluated.
from cobaya.
If sigma8 is calculated, CAMB always include z=0, so should always be the lowest redshift. The code you quote looks like a pre-v1.0 version of CAMB?
Looks as though get_derived is Cobaya may be returning them the wrong element of the array.
from cobaya.
Hi @vivianmiranda,
Any update on this? Can you confirm that you are using Cobaya>1.1, for CAMB >1.0 support?
from cobaya.
from cobaya.
OK, I'll look into writing a patch for the cobaya 1.0 tree (camb < 1.0) on Monday. Sorry!
from cobaya.
The index is probably also wrong in the 1.0 branch? (should be -1 not 0)
from cobaya.
Taking a look at it right now. For now, I am getting the correct sigma8 for that Cosmology (~0.827) in both Cobaya 1.0 and 1.1. I guess to reproduce your error I need to ask for more than 1 redshift, so that the wrong one is picked? I am going to try that.
from cobaya.
Ok, can confirm. I am going to try to fix it in both 1.0 and 1.1.
from cobaya.
Fixed in both branch 1.0
(deploying as v1.0.5
) and master
(deploying as v1.1.2
)
Thanks a lot for the report!
from cobaya.
Related Issues (20)
- Backward Compatibility with python 3.9 HOT 4
- "The sum of logpriors in the sample is not consistent." when resuming chains HOT 3
- Something went wrong when looking for a covmat HOT 1
- Script invocation is broken on Python 3.9 HOT 4
- Python invocation not doing anything HOT 4
- FutureWarning
- Interpolation error creating a delta chi2 = 20 on DESI likelihood HOT 7
- Installing DESI data: could not be found error HOT 4
- cobaya-install cannot name '__obsolete__' from 'cobaya' (unknown location) HOT 4
- cobaya-install planck_2018_highl_plik.TTTEEE fails HOT 2
- bao.generic likelihood not working for the distances of type Dv_over_rs HOT 6
- Error with the .yaml file generated from cosmo generator HOT 3
- *ERROR* Requested fast/slow separation, but all parameters have the same speed HOT 3
- NPIPE likelihood HOT 2
- Cobaya 3.5.1 and ACT HOT 2
- Sampling over HMCode params HOT 2
- module 'clik' has no attribute 'lkl' HOT 5
- pytest-forked HOT 2
- numpy 2 in tests HOT 1
- Github actions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cobaya.