Skip to content

Commit

Permalink
other fix to benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed Aug 21, 2024
1 parent 011ec6c commit d33d2f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions benchmarks/bench_kfactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
2 changes: 1 addition & 1 deletion docs/source/overview/running.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d33d2f9

Please sign in to comment.