From 759a05e4df440fccf62b1afe7d766740a91680d9 Mon Sep 17 00:00:00 2001 From: Andrea Barontini Date: Tue, 3 Sep 2024 12:58:06 +0200 Subject: [PATCH] Revert fix to xif and use a variable for ren_grid2 --- src/pineko/evolve.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pineko/evolve.py b/src/pineko/evolve.py index 84e603d2..0c98b4e2 100644 --- a/src/pineko/evolve.py +++ b/src/pineko/evolve.py @@ -197,7 +197,7 @@ def write_operator_card(pineappl_grid, default_card, card_path, tcard): muf2_grid = evol_info.fac1 operators_card = copy.deepcopy(default_card) sv_method = sv_scheme(tcard) - xif = 1.0 if sv_method is None else tcard["XIF"] + xif = 1.0 if sv_method is not None else tcard["XIF"] # update scale variation method operators_card["configs"]["scvar_method"] = sv_method @@ -354,7 +354,7 @@ def evolve_grid( evol_info = grid.evolve_info(order_mask) x_grid = evol_info.x1 mur2_grid = evol_info.ren1 - xif = 1.0 if operators1.operator_card.configs.scvar_method is None else xif + xif = 1.0 if operators1.operator_card.configs.scvar_method is not None else xif tcard = operators1.theory_card opcard = operators1.operator_card # rotate the targetgrid @@ -419,14 +419,14 @@ def prepare(operator): pid_basis=PyPidBasis.Evol, ) yield (info, op.operator) - + ren_grid2 = xir*xir*mur2_grid if operators2 is not None: # check convolutions order check_convolution_types(grid, operators1, operators2) fktable = grid.evolve_with_slice_iter2( prepare(operators1), prepare(operators2), - ren1=xir*xir*mur2_grid, + ren1=ren_grid2, alphas=alphas_values, xi=(xir, xif), order_mask=order_mask, @@ -434,7 +434,7 @@ def prepare(operator): else: fktable = grid.evolve_with_slice_iter( prepare(operators1), - ren1=xir*xir*mur2_grid, + ren1=ren_grid2, alphas=alphas_values, xi=(xir, xif), order_mask=order_mask,