Skip to content

Commit

Permalink
cast parton to int
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed Jul 24, 2024
1 parent 2553fe1 commit b715f03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pineko/comparator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ def compare(pine, fktable, max_as, max_al, pdf1, xir, xif, pdf2=None):

# TODO: This should probably changed in the future to use the Grid::convolutions
try:
parton1 = pine.key_values()["convolution_particle_1"]
parton2 = pine.key_values()["convolution_particle_2"]
parton1 = int(pine.key_values()["convolution_particle_1"])
parton2 = int(pine.key_values()["convolution_particle_2"])
except KeyError:
parton1 = pine.key_values()["initial_state_1"]
parton2 = pine.key_values()["initial_state_2"]
parton1 = int(pine.key_values()["initial_state_1"])
parton2 = int(pine.key_values()["initial_state_2"])
hadronic = parton1 == parton2

order_mask = pineappl.grid.Order.create_mask(pine.orders(), max_as, max_al, True)
Expand Down

0 comments on commit b715f03

Please sign in to comment.