Skip to content

Commit

Permalink
automation good
Browse files Browse the repository at this point in the history
  • Loading branch information
toonhasenack committed Feb 20, 2024
1 parent 91c3a1a commit fa75aeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/kfactors/generate_g1f1.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from typing import List, Tuple


def get_gpaths(folder: str, data: str) -> Tuple[str, List[str]]:
def get_gpaths(folder: str, data: str, theory: str) -> Tuple[str, List[str]]:
"""
Get a list of paths to PineAPPL grids in the specified folder.
Expand All @@ -26,7 +26,7 @@ def get_gpaths(folder: str, data: str) -> Tuple[str, List[str]]:
gpaths : List[str]
List of paths to PineAPPL grid files.
"""
paths = glob(folder + f"/*{data}*F1*") # Find the grids
paths = glob(folder + f"/{theory}*{data}*F1*") # Find the grids
gpaths = []
for p in paths:
gpaths.append(glob(p + "/*.pineappl.lz4")[0])
Expand Down Expand Up @@ -140,7 +140,7 @@ def save_data(
output = args.output

# Get PineAPPL grid paths and PDF name
gpaths = get_gpaths(folder_name, data)
gpaths = get_gpaths(folder_name, data, theory)

# Process each PineAPPL grid
for gpath in gpaths:
Expand Down

0 comments on commit fa75aeb

Please sign in to comment.