-
Notifications
You must be signed in to change notification settings - Fork 81
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
Could not find sBBN_2017.dat #364
Comments
I am worried specifically about this line: |
Hi, Depending on your class version the BBN files have two different locations that you should specify through your input param file. For newer class versions you need e.g.: For older class versions you need (if I remember correctly) e.g.: Or change the path to whatever the correct path is if these don't work. Look in your class directory to find the BBN files. For newer CLASS versions you find them in your_class/external/bbn/ and for older CLASS versions I think it was your_class/bbn/ . Note there are three different BBN files to choose from. Best, |
Grateful for your quick reply. I had created a default.conf file with these lines in them: And as you said, in the example.param file, I added following line: But now it generates the following error msg, something about HyRec2020: **** ERROR HAS OCCURRED in HYREC-2 **** 10 1e+30 2.270224e+00 1.116459e-01 9.631547e-01 2.394928e+00 7.063477e-01 8.449914e-02 0.000000e+00 0.000000e+00 |
Here is the full message, if this helps: |
Something seems to be going wrong with your paths, you will notice the former paths point to Best, |
My CLASS main folder's name was "class_public-3.2.3", but it looks like there is some default / hard-coded path within the code itslef that only recognizes "class" as the main folder's name. I changed the name of my folder to "class" and it works now! |
Glad you got it to work! MontePython doesn't hard code the path, but if you have more than one compiled version of class it might be taking the path of your most recently compiled class version, so another option might have been to recompile the version of class you wanted to use. On some systems it's a problem where it doesn't take the version from default.conf and instead takes the most recently compiled class version. I find it likely this was one of those issues. |
I am trying to run this command:
$ python2.7 montepython/MontePython.py run -o test -p example.param
But It every time it gives this error:
Error in Class: thermodynamics_init(L:342) :error in thermodynamics_helium_from_bbn(ppr,pba,pth);
=>thermodynamics_helium_from_bbn(L:545) :could not open fA with name /home/kshitiz/class/external/bbn/sBBN_2017.dat and mode "r"
10 1e+30 2.251788e+00 1.124584e-01 9.687692e-01 2.401819e+00 7.107870e-01 9.115225e-02 0.000000e+00 0.000000e+00
10 steps done, acceptance rate: 0.0
/!\ The acceptance rate is below 0.05. You might want to set the jumping factor
to a lower value than the default (2.4), with the option
-f 1.5
forinstance.
I also tried to include this line in the example.param file:
data.cosmo_arguments['sBBN file'] = '/home/MY_PC/class_public-3.2.3/external/bbn/sBBN_2017.dat'
but it still gives the same error.
The text was updated successfully, but these errors were encountered: