Skip to content

Commit

Permalink
init fixes of compare
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed Jul 23, 2024
1 parent c1fe183 commit 915daf4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion benchmarks/bench_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def benchmark_convolve_cli(test_files, tmp_path):
runner = CliRunner()
result = runner.invoke(
command,
["convolve", str(grid_path), str(eko_path), str(fk_path), "2", "0"],
["convolve", str(grid_path), str(fk_path), "2", "0", str(eko_path)],
)
assert "Optimizing for Nf6Ind" in result.output

Expand Down
13 changes: 6 additions & 7 deletions src/pineko/comparator.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,17 @@ def compare(pine, fktable, max_as, max_al, pdf1, xir, xif, pdf2=None):
if hadronic:
before = np.array(
pine.convolve_with_two(
pdgid1,
pdfset1.xfxQ2,
pdfset1.alphasQ2,
pdgid2,
pdfset2.xfxQ2,
pdfset2.alphasQ2,
pdg_id1=pdgid1,
xfx1=pdfset1.xfxQ2,
pdg_id2=pdgid2,
xfx2=pdfset2.xfxQ2,
alphas=pdfset1.alphasQ2,
order_mask=order_mask,
xi=((xir, xif),),
)
)
after = np.array(
fktable.convolve_with_one(pdgid1, pdfset1.xfxQ2, pdgid2, pdfset2.xfxQ2)
fktable.convolve_with_two(pdgid1, pdfset1.xfxQ2, pdgid2, pdfset2.xfxQ2)
)
else:
before = np.array(
Expand Down

0 comments on commit 915daf4

Please sign in to comment.