Skip to content

Commit 7793b8b

Browse files
committed
Change continuum marginalization variable
1 parent 2d98070 commit 7793b8b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

lya_2pt/global_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222

2323
get_old_distortion = None
2424
rejection_fraction = None
25-
continuum_order = None
25+
cont_marg_order = None
2626
seed = None

lya_2pt/interface.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
accepted_options = [
2020
"input-nside", "output-nside", "num-cpu", "z_min", "z_max", "rp_min", "rp_max", "rt_max",
2121
"num_bins_rp", "num_bins_rt", "num_bins_rp_model", "num_bins_rt_model",
22-
"rejection_fraction", "get-old-distortion", "continuum-order", "seed"
22+
"rejection_fraction", "get-old-distortion", "continuum-marginalization-order", "seed"
2323
]
2424

2525
defaults = {
@@ -37,7 +37,7 @@
3737
"num_bins_rt_model": 50,
3838
"rejection_fraction": 0.99,
3939
"get-old-distortion": True,
40-
"continuum-order": -1,
40+
"continuum-marginalization-order": -1,
4141
"seed": 0,
4242
}
4343

@@ -101,7 +101,7 @@ def __init__(self, config):
101101
globals.num_bins_rt_model = self.settings.getint('num_bins_rt_model')
102102
globals.rejection_fraction = self.settings.getfloat('rejection_fraction')
103103
globals.get_old_distortion = self.settings.getboolean('get-old-distortion')
104-
globals.continuum_order = self.settings.getint('continuum-order')
104+
globals.cont_marg_order = self.settings.getint('continuum-marginalization-order')
105105
globals.seed = self.settings.getint('seed')
106106

107107
self.input_nside = self.settings.getint("input-nside")

lya_2pt/optimal_estimator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def compute_xi_and_fisher(healpix_id, eboss=True):
230230
globals.rp_max, globals.rt_max
231231
)
232232

233-
tracer1.set_inverse_covariance(xi1d_interp, globals.continuum_order)
233+
tracer1.set_inverse_covariance(xi1d_interp, globals.cont_marg_order)
234234
tracer1.apply_invcov_to_deltas()
235235

236236
if globals.rejection_fraction > 0:
@@ -240,7 +240,7 @@ def compute_xi_and_fisher(healpix_id, eboss=True):
240240
angles = angles[w]
241241

242242
for tracer2, angle in zip(neighbours, angles):
243-
tracer2.set_inverse_covariance(xi1d_interp, globals.continuum_order)
243+
tracer2.set_inverse_covariance(xi1d_interp, globals.cont_marg_order)
244244
tracer2.apply_invcov_to_deltas()
245245
compute_xi_and_fisher_pair(tracer1, tracer2, angle, xi_est, fisher_est)
246246
tracer2.release_inverse_covariance()

lya_2pt/tracer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def apply_z_evol_to_weights(self, redshift_evol, reference_z):
300300
/ self.sum_weights)
301301
self.term3_norm = (self.weights * self.logwave_term**2).sum()
302302

303-
def set_inverse_covariance(self, xi1d_interp, cont_order=2):
303+
def set_inverse_covariance(self, xi1d_interp, cont_order=1):
304304
if self.invcov is not None:
305305
return
306306

0 commit comments

Comments
 (0)