Skip to content

Commit

Permalink
Update check if the grid is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed Oct 13, 2023
1 parent 025a578 commit 1a495a7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/pineko/theory.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,18 @@ def fk(self, name, grid_path, tcard, pdf):

# NB: This would not happen for nFONLL
max_al = 0

# check if the grid is empty
if check.is_num_fonll(tcard["FNS"]):
if (
pineappl.grid.Order.create_mask(
grid.orders(), max_as, max_al, True
).size
== 0
):
rich.print(f"[green] Skipping empty grid.")
return

# check for sv
if not np.isclose(xir, 1.0):
check_scvar_evolve(grid, max_as, max_al, check.Scale.REN)
Expand Down

0 comments on commit 1a495a7

Please sign in to comment.