Skip to content

Commit

Permalink
fix path type
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed Jul 8, 2024
1 parent adf5bb8 commit c847c48
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pineko/theory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit c847c48

Please sign in to comment.