Skip to content

Commit

Permalink
ignoring tjpcov
Browse files Browse the repository at this point in the history
  • Loading branch information
fjaviersanchez committed Oct 16, 2023
1 parent 87dd054 commit f29265f
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions augur/utils/cov_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
import pyccl as ccl
from tjpcov.covariance_gaussian_fsky import FourierGaussianFsky
# from tjpcov.covariance_gaussian_fsky import FourierGaussianFsky


def get_noise_power(config, S, tracer_name, return_ndens=False):
Expand Down Expand Up @@ -193,20 +193,20 @@ def get_SRD_cov(config, S):
return cov_sacc_all


class TJPCovGaus(FourierGaussianFsky):
"""
Class to patch FourierGaussianFsky to work with Augur
"""
def __init__(self, config):
super().__init__(config)
self.tracer_Noise = self.tracer_Noise_coupled

def get_binning_info(self):
ell_eff = self.get_ell_eff()
if 'ell_edges' in self.config['tjpcov']['binning_info'].keys():
ell_edges = self.config['tjpcov']['binning_info']['ell_edges']
ell_min = np.min(ell_edges)
ell_max = np.max(ell_edges)
nbpw = ell_max - ell_min
ell = np.linspace(ell_min, ell_max, nbpw+1).astype(np.int32)
return ell, ell_eff, ell_edges
# class TJPCovGaus(FourierGaussianFsky):
# """
# Class to patch FourierGaussianFsky to work with Augur
# """
# def __init__(self, config):
# super().__init__(config)
# self.tracer_Noise = self.tracer_Noise_coupled

# def get_binning_info(self):
# ell_eff = self.get_ell_eff()
# if 'ell_edges' in self.config['tjpcov']['binning_info'].keys():
# ell_edges = self.config['tjpcov']['binning_info']['ell_edges']
# ell_min = np.min(ell_edges)
# ell_max = np.max(ell_edges)
# nbpw = ell_max - ell_min
# ell = np.linspace(ell_min, ell_max, nbpw+1).astype(np.int32)
# return ell, ell_eff, ell_edges

0 comments on commit f29265f

Please sign in to comment.