Skip to content

Commit 2a521f1

Browse files
committed
Merge branch 'master' into feature-product-domain
2 parents 8ad7517 + 12b2612 commit 2a521f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/qinfer/tests/base_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,11 +573,11 @@ def test_in_domain(self):
573573
try:
574574
assert(self.domain.in_domain(v))
575575
except AssertionError as e:
576-
print('Current Value: {}'.format(v))
576+
e.args += ('Current good value: {}'.format(v),)
577577
raise e
578578
for v in self.bad_values:
579579
try:
580580
assert(not self.domain.in_domain(v))
581581
except AssertionError as e:
582-
print('Current Value: {}'.format(v))
582+
e.args += ('Current bad value: {}'.format(v),)
583583
raise e

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)