Skip to content

Commit

Permalink
Restrict full-shape blinding read for when it's needed
Browse files Browse the repository at this point in the history
  • Loading branch information
andreicuceu committed Dec 6, 2024
1 parent 3c2650c commit df8487a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion vega/plots/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,12 @@ def plot_data(self, ax, mu_bin, data=None, cov_mat=None, cross_flag=False, label
covariance = array_or_dict(cov_mat, corr_name)

rd, dd, cd = wedge_obj(data_vec, covariance=covariance)
if 'alpha' in kwargs:
alpha = kwargs['alpha']
else:
alpha = 1.
ax.errorbar(rd, dd * rd**scaling_power, yerr=np.sqrt(cd.diagonal()) * rd**scaling_power,
fmt=data_fmt, color=data_color, label=label)
fmt=data_fmt, color=data_color, label=label, alpha=alpha)

return rd, dd, cd

Expand Down
3 changes: 2 additions & 1 deletion vega/vega_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def __init__(self, main_path):
raise ValueError(f'Running on blind data, parameter {par} must be fixed.')
elif par in utils.VEGA_BLINDED_PARS:
blind_pars += [par]
self._rnsps = utils.get_blinding(blind_pars, blinding_strat)
if len(blind_pars) > 0:
self._rnsps = utils.get_blinding(blind_pars, blinding_strat)

if ('bias_QSO' in self.sample_params['limits']) and (
'beta_QSO' in self.sample_params['limits']):
Expand Down

0 comments on commit df8487a

Please sign in to comment.