Git Product home page Git Product logo

Comments (9)

vivianmiranda avatar vivianmiranda commented on August 28, 2024

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.

cmbant avatar cmbant commented on August 28, 2024

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.

JesusTorrado avatar JesusTorrado commented on August 28, 2024

Hi @vivianmiranda,

Any update on this? Can you confirm that you are using Cobaya>1.1, for CAMB >1.0 support?

from cobaya.

vivianmiranda avatar vivianmiranda commented on August 28, 2024

from cobaya.

JesusTorrado avatar JesusTorrado commented on August 28, 2024

OK, I'll look into writing a patch for the cobaya 1.0 tree (camb < 1.0) on Monday. Sorry!

from cobaya.

cmbant avatar cmbant commented on August 28, 2024

The index is probably also wrong in the 1.0 branch? (should be -1 not 0)

from cobaya.

JesusTorrado avatar JesusTorrado commented on August 28, 2024

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.

JesusTorrado avatar JesusTorrado commented on August 28, 2024

Ok, can confirm. I am going to try to fix it in both 1.0 and 1.1.

from cobaya.

JesusTorrado avatar JesusTorrado commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.