Permalink
Browse files

accumulator: added check for retrieved observable object from accumul…

…ator params.
  • Loading branch information...
KaiSzuttor committed Dec 7, 2017
1 parent 6640648 commit 452959bbb894711ecd9fcc862449ede0bb5f07dc
Showing with 1 addition and 0 deletions.
  1. +1 −0 testsuite/accumulator.py
View
@@ -57,6 +57,7 @@ def test_accumulator(self):
for i in range(self.positions.shape[0]):
self.system.part[0].pos = self.positions[i]
self.system.integrator.run(1)
self.assertEqual(self.pos_obs, self.pos_obs_acc.get_params()['obs'])
np.testing.assert_allclose(
self.pos_obs_acc.get_mean(), np.mean(
self.positions, axis=0), atol=1e-4)

0 comments on commit 452959b

Please sign in to comment.