From d33d2f9c321f566458962b428615c5bb59cce272 Mon Sep 17 00:00:00 2001 From: Giacomo Magni Date: Wed, 21 Aug 2024 13:45:05 +0200 Subject: [PATCH] other fix to benchmarks --- benchmarks/bench_kfactor.py | 11 +++++++---- docs/source/overview/running.rst | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/benchmarks/bench_kfactor.py b/benchmarks/bench_kfactor.py index d86d7b46..d562f018 100644 --- a/benchmarks/bench_kfactor.py +++ b/benchmarks/bench_kfactor.py @@ -2,17 +2,20 @@ import numpy as np import pineappl -from pineko import kfactor +from pineko import configs, kfactor def benchmark_kfactor_inclusion(test_files, tmp_path, test_pdf, lhapdf_path): - fake_yaml_path = test_files / "data" / "yamldb" / "ATLAS_TTB_FAKE.yaml" + + base_configs = configs.load(test_files / "pineko.toml") + configs.configs = configs.defaults(base_configs) + pto_to_update = 3 # here we want to update NNLO pdf_name = "NNPDF40_nnlo_as_01180" kfactor.apply_to_dataset( - test_files / "data" / "grids" / "400", + 400, + "ATLAS_TTB_FAKE", test_files / "data" / "kfactors", - fake_yaml_path, pto_to_update, tmp_path, ) diff --git a/docs/source/overview/running.rst b/docs/source/overview/running.rst index 8d3595db..7194999f 100644 --- a/docs/source/overview/running.rst +++ b/docs/source/overview/running.rst @@ -100,7 +100,7 @@ Using pineko with NNPDF """"""""""""""""""""""" It is possible to use ``pineko`` without providing an explicit mapping between data and grids -(i.e., without a ``yamldb`` database) or theory cards, by using the data declared in the NNPDF +(i.e., without a ``ymldb`` database) or theory cards, by using the data declared in the NNPDF repository (which includes a data-theory mapping). In order to do this you need to install ``pineko`` with the ``nnpdf`` extra, which installs