def test_euler(self): euler_det = integrators.EulerDeterministic() euler_sto = integrators.EulerStochastic() self.assertEqual(euler_det.dt, dt) self.assertEqual(euler_sto.dt, dt) self.assertTrue(isinstance(euler_sto.noise, noise.Additive)) self.assertEqual(euler_sto.noise.nsig, 1.0) self.assertEqual(euler_sto.noise.ntau, 0.0)
def test_euler(self): euler_det = integrators.EulerDeterministic() euler_sto = integrators.EulerStochastic() euler_sto.noise.dt = euler_sto.dt assert euler_det.dt == dt assert euler_sto.dt == dt assert isinstance(euler_sto.noise, noise.Additive) assert euler_sto.noise.nsig == 1.0 assert euler_sto.noise.ntau == 0.0 self._test_scheme(euler_det) self._test_scheme(euler_sto)