Skip to content

Commit

Permalink
initialize share_delta_neff back to False when used from python,e.g. …
Browse files Browse the repository at this point in the history
…in case starting from copy of .ini file
  • Loading branch information
cmbant committed Nov 20, 2024
1 parent ecd375b commit c525b16
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion camb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
__author__ = "Antony Lewis"
__contact__ = "antony at cosmologist dot info"
__url__ = "https://camb.readthedocs.io"
__version__ = "1.5.8"
__version__ = "1.5.9"

from . import baseconfig

Expand Down
2 changes: 1 addition & 1 deletion camb/dark_energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def validate_params(self):
def set_w_a_table(self, a, w):
# check w array has elements that do not cross -1
if np.sign(1 + np.max(w)) - np.sign(1 + np.min(w)) == 2:
raise ValueError('fluid dark energy model does not support w crossing -1')
raise CAMBError('fluid dark energy model does not support w crossing -1')
super().set_w_a_table(a, w)


Expand Down
2 changes: 1 addition & 1 deletion fortran/config.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module config
use constants, only: const_twopi
implicit none

character(LEN=*), parameter :: version = '1.5.8'
character(LEN=*), parameter :: version = '1.5.9'

integer :: FeedbackLevel = 0 !if >0 print out useful information about the model

Expand Down
1 change: 1 addition & 0 deletions fortran/model.f90
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ subroutine CAMBparams_SetNeutrinoHierarchy(this, omnuh2, omnuh2_sterile, nnu, ne
return
end if
this%Nu_mass_eigenstates=0
this%share_delta_neff = .false.
if (omnuh2 > omnuh2_sterile) then
normal_frac = (omnuh2-omnuh2_sterile)/omnuh2
if (neutrino_hierarchy == neutrino_hierarchy_degenerate) then
Expand Down

0 comments on commit c525b16

Please sign in to comment.