Esempio n. 1
0
 def test_raises(self):
     pot = _lj_cpp._ErrorPotential()
     with self.assertRaises(RuntimeError):
         modified_fire = ModifiedFireCPP(_xrand, pot)
         modified_fire.run()
Esempio n. 2
0
 def test_raises(self):
     pot = _lj_cpp._ErrorPotential()
     with self.assertRaises(RuntimeError):
         lbfgs = LBFGS_CPP(_xrand, pot)
         lbfgs.run()
Esempio n. 3
0
 def test_raises(self):
     pot = _lj_cpp._ErrorPotential()
     with self.assertRaises(RuntimeError):
         lbfgs = LBFGS_CPP(_xrand, pot)
         lbfgs.run()
Esempio n. 4
0
 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()
Esempio n. 6
0
 def setUp(self):
     self.pot = _lj_cpp._ErrorPotential()
     self.x = np.random.uniform(-1, 1, [9])