-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
48 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"""Fully managed runner. | ||
This is an automated runner, mainly suggested for small EKOs computations. | ||
The primitives used here to compute the various pieces are part of the public | ||
interface, and should be directly used to manage a more complex run for a | ||
considebaly large operator. | ||
Thus, parallelization and multi-node execution is possible using EKO primitives, | ||
but not automatically performed. | ||
""" | ||
|
||
from pathlib import Path | ||
|
||
from ..io.runcards import OperatorCard, TheoryCard | ||
from ..io.struct import EKO | ||
from . import recipes | ||
|
||
|
||
def solve(theory: TheoryCard, operator: OperatorCard, path: Path): | ||
"""Solve DGLAP equations in terms of evolution kernel operators (EKO).""" | ||
with EKO.create(path) as builder: | ||
eko = builder.load_cards(theory, operator).build() | ||
|
||
recipes.create(eko) | ||
|
||
# for recipe in eko.recipes: | ||
# pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters