Skip to content

Commit

Permalink
init fix on benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed Jul 19, 2024
1 parent b1c8c78 commit ca58d1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions benchmarks/bench_theory.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,13 @@ def benchmark_inherit_grids(test_files):


def benchmark_inherit_eko(tmp_path):
from_eko = theory_obj.ekos_path()
theory_obj.inherit_eko("TestEko", from_eko, tmp_path)
for grid in theory_obj.grids_path().iterdir():
name = grid.stem.split(".")[0]
# here NUTEV eko is not present
if (theory_obj.ekos_path() / f"{name}.tar").exists():
theory_obj.inherit_eko(name, grid, tmp_path)
assert tmp_path.is_dir()
assert (tmp_path / f"{name}.tar").exists()


def benchmark_inherit_ekos(test_files):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ packages = [{ include = "pineko", from = "src" }]
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
eko = "^0.14.2"
pineappl = { git = "https://github.com/NNPDF/pineappl.git", branch = "extend_eko_convolution", subdirectory = "pineappl_py" }
pineappl = "^0.8.1"
PyYAML = "^6.0"
numpy = "^1.21.0"
pandas = "^2.1"
Expand Down

0 comments on commit ca58d1a

Please sign in to comment.