Git Product home page Git Product logo

Comments (6)

JesusTorrado avatar JesusTorrado commented on August 28, 2024

Hi Vivian,

There is an option for CAMB/CLASS, stop_at_error, which is False by default. If this is happening to you and you have not set this option to True manually, the reason is likely that you have found a CAMB error which is not explicitly caught by Python, either because (a) we didn't know about it, or (b) your CAMB version is not up to date. To check which one is the case, you can perform the following test:

  1. Re-run Cobaya with debug: True, and take note of the arguments mentioned in the last line looking like [camb XXXXXXX] Setting parameters {...}.
  2. Download an up to date version of CAMB from Git, compile it, and try to run CAMB with your parameter value (import camb; pars = camb.set_params([your params here]; camb.get_matter_power_interpolator(pars)); see if it fails.

If it does fail, you have found a new uncaught error, so please send us your input parameters; if it does not, this means you need to update your CAMB version (if you are using a custom version, modified by you, you can download the latest Git one, and merge yours into it using something like meld). If after merging you still get the error, let us know and we'll see how to solve it.

Cheers

from cobaya.

vivianmiranda avatar vivianmiranda commented on August 28, 2024

from cobaya.

JesusTorrado avatar JesusTorrado commented on August 28, 2024

Hi Vivian,

In that case, can you tell us if there is a way for us to reproduce the error, so that we can locate the offending lines in the CAMB Python interface and wrap them in a try:except?

Or alternatively, if you prefer not to share your CAMB modification, you may want to do it yourself: locate the part of the Python interface of CAMB that fails and try to raise a CAMBError, which you can import to that file with from .baseconfig import CAMBError. CAMBError's are automatically treated by Cobaya as zero-likelihood points.

from cobaya.

vivianmiranda avatar vivianmiranda commented on August 28, 2024

from cobaya.

JesusTorrado avatar JesusTorrado commented on August 28, 2024

Glad that you solved it! Closing it then.

In any case, if you send us the precise CAMB input parameters for that case (got with debug:True as explained above), we should be able to fix it at the Python interface level, so that you don't have to keep your own modification just for that, and no one else finds that error in the future.

from cobaya.

vivianmiranda avatar vivianmiranda commented on August 28, 2024

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.