From ca58d1a9004e1cfaabebb76d7da78d1ca32ddb51 Mon Sep 17 00:00:00 2001 From: Giacomo Magni Date: Fri, 19 Jul 2024 09:45:00 +0200 Subject: [PATCH] init fix on benchmarks --- benchmarks/bench_theory.py | 9 +++++++-- pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/benchmarks/bench_theory.py b/benchmarks/bench_theory.py index 76e9fbf0..f36d85cb 100644 --- a/benchmarks/bench_theory.py +++ b/benchmarks/bench_theory.py @@ -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): diff --git a/pyproject.toml b/pyproject.toml index 590baa8a..4f21eeba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"