Skip to content

Commit

Permalink
make tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed Jun 4, 2024
1 parent f2dbc46 commit 929726d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pineko/scale_variations.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def initialize_new_grid(grid, new_order):
bin_limits = [
float(bin) for bin in range(grid.bins() + 1)
] # The +1 explanation is that n bins have n+1 bin limits, and range generates numbers from a half-open interval (range(n) generates n numbers).
lumi_grid = [pineappl.lumi.LumiEntry(mylum) for mylum in grid.channels()]
lumi_grid = [pineappl.lumi.Channel(mylum) for mylum in grid.channels()]
subgrid_params = pineappl.subgrid.SubgridParams()
new_order = [pineappl.grid.Order(*new_order)]
# create new_grid with same lumi and bin_limits of the original grid but with new_order
Expand Down Expand Up @@ -205,7 +205,7 @@ def merge_grids(
def construct_and_dump_order_exists_grid(ori_grid, to_construct_order):
"""Remove the order that has to be substituted from the grid."""
bin_limits = [float(bin) for bin in range(ori_grid.bins() + 1)]
lumi_grid = [pineappl.lumi.LumiEntry(mylum) for mylum in ori_grid.channels()]
lumi_grid = [pineappl.lumi.Channel(mylum) for mylum in ori_grid.channels()]
subgrid_params = pineappl.subgrid.SubgridParams()
ori_grid_orders = [order.as_tuple() for order in ori_grid.orders()]
new_orders = [
Expand Down
2 changes: 1 addition & 1 deletion tests/test_evolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class FakePine:
def orders(self):
return [pineappl.grid.Order(0, 0, 0, 0)]

def lumi(self):
def channels(self):
return [[(21, 21, 1)]]

def evolve_info(self, _):
Expand Down

0 comments on commit 929726d

Please sign in to comment.