Skip to content

Commit

Permalink
cleanup des y5
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Apr 8, 2024
1 parent e2d5579 commit 09f43ae
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cobaya/likelihoods/sn/desy5.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class desy5(pantheonplus):

def init_params(self, ini):
self.twoscriptmfit = False
# self.pecz = 0.
# self.has_third_var = False
data_file = os.path.normpath(os.path.join(self.path, ini.string("data_file")))
self._read_data_file(data_file)
self.covs = {}
Expand All @@ -25,11 +23,6 @@ def init_params(self, ini):
os.path.join(self.path, ini.string('%s_covmat_file' % name)))
self.alphabeta_covmat = False
self.pre_vars = self.mag_err ** 2 # diagonal component
# argsort = np.argsort(self.zcmb)
# for col in self.cols:
# setattr(self, col, getattr(self, col)[argsort])
# for name, cov in self.covs.items():
# self.covs[name] = cov[np.ix_(argsort, argsort)]
self.inverse_covariance_matrix()
if not self.use_abs_mag:
self._marginalize_abs_mag()
Expand All @@ -38,7 +31,6 @@ def init_params(self, ini):
def _read_data_file(self, data_file):
self.log.debug('Reading %s' % data_file)
sep = ','
supernovae = {}
self.names = []
oldcols = ['zhd', 'zhel', 'mu', 'muerr_final']
self.cols = ['zcmb', 'zhel', 'mag', 'mag_err']
Expand Down

0 comments on commit 09f43ae

Please sign in to comment.