Skip to content

Commit

Permalink
cosmology
Browse files Browse the repository at this point in the history
  • Loading branch information
antolonappan committed Sep 21, 2023
1 parent a958c77 commit c5749bb
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions marcia/cosmology.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ def __check_mandatory_parameters__(self):
assert 'Omega_m' in self.param.parameters, 'CPL: Omega_m is not defined in the parameters'
assert 'wa' in self.param.parameters, 'CPL: wa is not defined in the parameters'
assert 'w0' in self.param.parameters, 'CPL: w0 is not defined in the parameters'
n=4
if self.rdsample or self.Obsample:
n+=1
if self.Mbsample:
n+=1
assert len(self.param.parameters) == n, 'CPL: parameters are not correct'
# n=4
# if self.rdsample or self.Obsample:
# n+=1
# if self.Mbsample:
# n+=1
# assert len(self.param.parameters) == n, 'CPL: parameters are not correct'

class CPL3(wCDM):
def __init__(self, parameters,prior_file=None):
Expand All @@ -257,12 +257,12 @@ def __check_mandatory_parameters__(self):
assert 'w0' in self.param.parameters, 'CPL3: w0 is not defined in the parameters'
assert 'wb' in self.param.parameters, 'CPL3: wb is not defined in the parameters'
assert 'wc' in self.param.parameters, 'CPL3: wc is not defined in the parameters'
n=6
if self.rdsample or self.Obsample:
n+=1
if self.Mbsample:
n+=1
assert len(self.param.parameters) == n, 'CPL3: parameters are not correct'
# n=6
# if self.rdsample or self.Obsample:
# n+=1
# if self.Mbsample:
# n+=1
# assert len(self.param.parameters) == n, 'CPL3: parameters are not correct'

def dark_energy_f(self,parameters, z):
p = self.param(parameters)
Expand Down Expand Up @@ -292,12 +292,12 @@ def __check_mandatory_parameters__(self):
assert 'fa' in self.param.parameters, 'XCDM: fa is not defined in the parameters'
assert 'fb' in self.param.parameters, 'XCDM: fb is not defined in the parameters'
assert 'fc' in self.param.parameters, 'XCDM: fc is not defined in the parameters'
n=5
if self.rdsample or self.Obsample:
n+=1
if self.Mbsample:
n+=1
assert len(self.param.parameters) == n, 'XCDM: parameters are not correct'
# n=5
# if self.rdsample or self.Obsample:
# n+=1
# if self.Mbsample:
# n+=1
# assert len(self.param.parameters) == n, 'XCDM: parameters are not correct'

def dark_energy_f(self,parameters,z):
p = self.param(parameters)
Expand All @@ -319,12 +319,12 @@ def __check_mandatory_parameters__(self):
assert 'Omega_m' in self.param.parameters, 'kwCDM: Omega_m is not defined in the parameters'
assert 'Omega_k' in self.param.parameters, 'kwCDM: Omega_k is not defined in the parameters'
assert 'w0' in self.param.parameters, 'kwCDM: w0 is not defined in the parameters'
n=4
if self.rdsample or self.Obsample:
n+=1
if self.Mbsample:
n+=1
assert len(self.param.parameters) == n, 'kwCDM: parameters are not correct'
# n=4
# if self.rdsample or self.Obsample:
# n+=1
# if self.Mbsample:
# n+=1
# assert len(self.param.parameters) == n, 'kwCDM: parameters are not correct'



Expand All @@ -336,12 +336,12 @@ def __check_mandatory_parameters__(self):
assert 'H0' in self.param.parameters, 'kLCDM: H0 is not defined in the parameters'
assert 'Omega_m' in self.param.parameters, 'kLCDM: Omega_m is not defined in the parameters'
assert 'Omega_k' in self.param.parameters, 'kLCDM: Omega_k is not defined in the parameters'
n=3
if self.rdsample or self.Obsample:
n+=1
if self.Mbsample:
n+=1
assert len(self.param.parameters) == n, 'kLCDM: parameters are not correct'
# n=3
# if self.rdsample or self.Obsample:
# n+=1
# if self.Mbsample:
# n+=1
# assert len(self.param.parameters) == n, 'kLCDM: parameters are not correct'

class kCPL(kwCDM):
def __init__(self, parameters,prior_file=None):
Expand All @@ -353,12 +353,12 @@ def __check_mandatory_parameters__(self):
assert 'Omega_k' in self.param.parameters, 'kCPL: Omega_k is not defined in the parameters'
assert 'w0' in self.param.parameters, 'kCPL: w0 is not defined in the parameters'
assert 'wa' in self.param.parameters, 'kCPL: wa is not defined in the parameters'
n=5
if self.rdsample or self.Obsample:
n+=1
if self.Mbsample:
n+=1
assert len(self.param.parameters) == n, 'kCPL: parameters are not correct'
# n=5
# if self.rdsample or self.Obsample:
# n+=1
# if self.Mbsample:
# n+=1
# assert len(self.param.parameters) == n, 'kCPL: parameters are not correct'

class kCPL3(CPL3):
def __init__(self, parameters,prior_file=None):
Expand All @@ -372,12 +372,12 @@ def __check_mandatory_parameters__(self):
assert 'wa' in self.param.parameters, 'kCPL3: wa is not defined in the parameters'
assert 'wc' in self.param.parameters, 'kCPL3: wc is not defined in the parameters'
assert 'wb' in self.param.parameters, 'kCPL3: wb is not defined in the parameters'
n=7
if self.rdsample or self.Obsample:
n+=1
if self.Mbsample:
n+=1
assert len(self.param.parameters) == n, 'kCPL3: parameters are not correct'
# n=7
# if self.rdsample or self.Obsample:
# n+=1
# if self.Mbsample:
# n+=1
# assert len(self.param.parameters) == n, 'kCPL3: parameters are not correct'



Expand All @@ -392,11 +392,11 @@ def __check_mandatory_parameters__(self):
assert 'fa' in self.param.parameters, 'kXCDM: fa is not defined in the parameters'
assert 'fb' in self.param.parameters, 'kXCDM: fb is not defined in the parameters'
assert 'fc' in self.param.parameters, 'kXCDM: fc is not defined in the parameters'
n=6
if self.rdsample or self.Obsample:
n+=1
if self.Mbsample:
n+=1
assert len(self.param.parameters) == n, 'kXCDM: parameters are not correct'
# n=6
# if self.rdsample or self.Obsample:
# n+=1
# if self.Mbsample:
# n+=1
# assert len(self.param.parameters) == n, 'kXCDM: parameters are not correct'


0 comments on commit c5749bb

Please sign in to comment.