Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convolute side-effect #124

Open
alecandido opened this issue Oct 9, 2023 · 0 comments
Open

convolute side-effect #124

alecandido opened this issue Oct 9, 2023 · 0 comments
Assignees
Labels
refactor Refactor code

Comments

@alecandido
Copy link
Member

Avoid modifying directly the EKO object that is passed to the pineko convolute subcommand.

def subcommand(grid_path, op_path, fktable, max_as, max_al, xir, xif, pdf, assumptions):
"""Convolute PineAPPL grid and EKO into an FK table.
GRID_PATH and OP_PATH are the path to the respective elements to convolute, and
FKTABLE is the path where to dump the output.
MAX_AS and MAX_AL are used to specify the order in QCD and QED
couplings (i.e. the maximum power allowed for each correction).
XIR and XIF represent the renormalization and factorization scale in the grid respectively.
ASSUMPTIONS represent the assumptions on the flavor dimension.
PDF is an optional PDF set compatible with the EKO to compare grid and FK table.
"""
grid = pineappl.grid.Grid.read(grid_path)
with eko.EKO.edit(op_path) as operators:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactor code
Projects
None yet
Development

No branches or pull requests

3 participants