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