Comments (6)
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:
- Re-run Cobaya with
debug: True
, and take note of the arguments mentioned in the last line looking like[camb XXXXXXX] Setting parameters {...}
. - 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.
from cobaya.
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.
from cobaya.
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.
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.