Skip to content

Commit

Permalink
moved cuts
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMantani committed Nov 28, 2024
1 parent 168e8a0 commit cf7f1c5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/smefit/rge.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def RGEevolve(self, wcs, scale):
return self.map_to_smefit(wc_final, scale)


def load_scales(datasets, theory_path, default_scale=1e3):
def load_scales(datasets, theory_path, default_scale=1e3, cutoff_scale=None):
"""
Load the energy scales for the datasets.
Expand All @@ -370,6 +370,8 @@ def load_scales(datasets, theory_path, default_scale=1e3):
path to the theory files
default_scale: float
default scale to use if the dataset does not have a scale
cutoff_scale: float
cutoff scale to use for the scales
Returns
-------
Expand Down Expand Up @@ -397,6 +399,9 @@ def load_scales(datasets, theory_path, default_scale=1e3):

_logger.info(f"Loaded scales for dataset {dataset}: {dataset_scales}")

if cutoff_scale is not None:
scales = [scale for scale in scales if scale < cutoff_scale]

return scales


Expand Down Expand Up @@ -436,9 +441,9 @@ def load_rge_matrix(
return rgemat.values, operators_to_keep

elif obs_scale == "dynamic":
scales = load_scales(datasets, theory_path, default_scale=init_scale)
if cutoff_scale is not None:
scales = [scale for scale in scales if scale < cutoff_scale]
scales = load_scales(
datasets, theory_path, default_scale=init_scale, cutoff_scale=cutoff_scale
)

operators_to_keep = {}
rgemat = []
Expand Down

0 comments on commit cf7f1c5

Please sign in to comment.