def test_raises(self): pot = _lj_cpp._ErrorPotential() with self.assertRaises(RuntimeError): modified_fire = ModifiedFireCPP(_xrand, pot) modified_fire.run()
def test_raises(self): pot = _lj_cpp._ErrorPotential() with self.assertRaises(RuntimeError): lbfgs = LBFGS_CPP(_xrand, pot) lbfgs.run()
def setUp(self): self.pot = _lj_cpp._ErrorPotential() self.x = np.random.uniform(-1, 1, [9])
def test_raises(self): pot = _lj_cpp._ErrorPotential() with self.assertRaises(RuntimeError): cgd = CGDescent(_xrand, pot) cgd.run()