Skip to content

Commit

Permalink
deal with type missmatch
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlehoff committed Mar 4, 2024
1 parent 3067843 commit 6a6688d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion n3fit/src/n3fit/model_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,8 @@ def compute_unnormalized_pdf(x):

if photons:
# add batch and flavor dimensions
photon_integrals = op.batchit(op.batchit(photons.integral))
ph_tensor = op.numpy_to_tensor(photons.integral)
photon_integrals = op.batchit(op.batchit(ph_tensor))
else:
photon_integrals = op.numpy_to_tensor(np.zeros((1, num_replicas, 1)))

Expand Down

0 comments on commit 6a6688d

Please sign in to comment.