Skip to content

Commit

Permalink
revert changes to Channel
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed Jun 4, 2024
1 parent ea263a4 commit 81bcfd0
Showing 1 changed file with 2 additions and 2 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.Channel(mylum) for mylum in grid.channels()]
lumi_grid = [pineappl.lumi.LumiEntry(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.Channel(mylum) for mylum in ori_grid.channels()]
lumi_grid = [pineappl.lumi.LumiEntry(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

0 comments on commit 81bcfd0

Please sign in to comment.