Skip to content

Commit b744170

Browse files
committed
cast slice bound to int
1 parent ddac821 commit b744170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qinfer/tests/test_smc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def likelihood(self, outcomes, modelparams, expparams):
6464
assert expparams.shape == (1,) # Only defined for single experiments.
6565

6666
pr0 = np.ones((modelparams.shape[0], expparams.shape[0])) / 2
67-
idx_dec_at = np.ceil(expparams['alpha'][0] * modelparams.shape[0])
67+
idx_dec_at = np.ceil(expparams['alpha'][0] * modelparams.shape[0]).astype(np.int)
6868
pr0[idx_dec_at:, :] = 0
6969

7070
return FiniteOutcomeModel.pr0_to_likelihood_array(outcomes, pr0)

0 commit comments

Comments
 (0)