From c847c48270384834433e9251f4e8aa84b2148b37 Mon Sep 17 00:00:00 2001 From: Giacomo Magni Date: Mon, 8 Jul 2024 15:31:13 +0200 Subject: [PATCH] fix path type --- src/pineko/theory.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pineko/theory.py b/src/pineko/theory.py index 517a71c4..c5533399 100644 --- a/src/pineko/theory.py +++ b/src/pineko/theory.py @@ -24,17 +24,17 @@ logger = logging.getLogger(__name__) -def get_eko_names(grid, name): +def get_eko_names(grid_path, name): """Find eko names. Parameters ---------- + grid_path : pathlib.Path + path to grid name : str grid name, i.e. it's true stem - grid : pathlib.Path - path to grid """ - grid_kv = pineappl.grid.Grid.read(grid).key_values() + grid_kv = pineappl.grid.Grid.read(grid_path).key_values() conv_type_a, conv_type_b = evolve.get_ekos_convolution_type(grid_kv) names = [] if conv_type_b is None or conv_type_a == conv_type_b: @@ -427,7 +427,7 @@ def fk(self, name, grid_path, tcard, pdf): grid.optimize() # Do you need one or multiple ekos? - names = get_eko_names(grid, name) + names = get_eko_names(grid_path, name) eko_filename = [self.ekos_path() / f"{ekoname}.tar" for ekoname in names] fk_filename = self.fks_path / f"{name}.{parser.EXT}" if fk_filename.exists():