Skip to content

Commit af0c425

Browse files
committed
Merge branch 'develop' of https://github.com/davidesciotti/Spaceborne into develop
2 parents d46dba1 + 9c9a47f commit af0c425

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

spaceborne/cov_real_space.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ def __project_ellspace_cov_vec_2d(
131131
): # fmt: skip
132132
"""This version is fully vectorized"""
133133

134+
warnings.warn(
135+
'This function is deprecated.', cathegory=DeprecationWarning, stacklevel=2
136+
)
137+
134138
def integrand_func(ell1, ell2, cov_ell):
135139
kmu = k_mu(ell1, theta_1_l, theta_1_u, mu)
136140
knu = k_mu(ell2, theta_2_l, theta_2_u, nu)
@@ -163,6 +167,10 @@ def __project_ellspace_cov_vec_1d(
163167
): # fmt: skip
164168
"""This version is vectorized anly along ell1"""
165169

170+
warnings.warn(
171+
'This function is deprecated.', cathegory=DeprecationWarning, stacklevel=2
172+
)
173+
166174
def integrand_func(ell1, ell2, cov_ell_diag):
167175
# Vectorized computation of k_mu and k_nu
168176
kmu = k_mu(ell1, theta_1_l, theta_1_u, mu)
@@ -188,6 +196,9 @@ def __project_hs_cov_simps(
188196
zi, zj, zk, zl,
189197
Amax, ell1_values, ell2_values, cov_ell,
190198
): # fmt: skip
199+
warnings.warn(
200+
'This function is deprecated.', cathegory=DeprecationWarning, stacklevel=2
201+
)
191202
# def integrand_func(ell1, ell2, cov_ell):
192203
# kmu = k_mu(ell1, theta_1_l, theta_1_u, mu)
193204
# knu = k_mu(ell2, theta_2_l, theta_2_u, nu)
@@ -233,6 +244,10 @@ def __project_ellspace_cov_helper( # fmt: skip
233244
): # fmt: skip
234245
# TODO unify helper funcs
235246

247+
warnings.warn(
248+
'This function is deprecated.', cathegory=DeprecationWarning, stacklevel=2
249+
)
250+
236251
theta_1_l = self.theta_edges_fine[theta_1_ix]
237252
theta_1_u = self.theta_edges_fine[theta_1_ix + 1]
238253
theta_2_l = self.theta_edges_fine[theta_2_ix]
@@ -254,6 +269,9 @@ def __project_ellspace_cov_helper( # fmt: skip
254269
def __project_ellspace_cov_vec_helper(
255270
self, theta_1_ix, theta_2_ix, mu, nu, Amax, ell1_values, ell2_values, cov_ell
256271
):
272+
warnings.warn(
273+
'This function is deprecated.', cathegory=DeprecationWarning, stacklevel=2
274+
)
257275
theta_1_l = self.theta_edges_fine[theta_1_ix]
258276
theta_1_u = self.theta_edges_fine[theta_1_ix + 1]
259277
theta_2_l = self.theta_edges_fine[theta_2_ix]
@@ -774,7 +792,6 @@ def __init__(self, cfg, pvt_cfg, mask_obj):
774792

775793
# other miscellaneous settings
776794
self.n_jobs = self.cfg['misc']['num_threads']
777-
self.tpcf_ingr_method = 'fftlog'
778795
self.integration_method = self.cfg['precision']['cov_rs_int_method']
779796
self.levin_bin_avg = self.cfg['precision']['levin_bin_avg']
780797

@@ -832,6 +849,7 @@ def _set_survey_info(self):
832849
self.fsky = self.mask_obj.fsky
833850
self.srtoarcmin2 = const.SR_TO_ARCMIN2
834851
# maximum survey area in sr
852+
# TODO generalise to multiple survey areas
835853
self.amax = max((self.survey_area_sr, self.survey_area_sr))
836854

837855
def _set_theta_binning(self):
@@ -840,8 +858,7 @@ def _set_theta_binning(self):
840858
self.nbt_coarse = self.cfg['binning']['theta_bins']
841859
self.nbt_fine = self.nbt_coarse
842860

843-
844-
# TODO this should probably go in the ell_binning class (which should be
861+
# TODO this should probably go in the ell_binning class (which should be
845862
# TODO renamed)
846863
if self.cfg['binning']['binning_type'] == 'log':
847864
_binning_func = np.geomspace
@@ -1289,7 +1306,6 @@ def compute_realspace_cov(self, cov_hs_obj, probe, term):
12891306
and probes specfied
12901307
"""
12911308

1292-
# TODO check I'm not messing up anything here...
12931309
probe_ab, probe_cd = sl.split_probe_name(probe)
12941310

12951311
mu, nu = const.MU_DICT[probe_ab], const.MU_DICT[probe_cd]

0 commit comments

Comments
 (0)