예제 #1
0
 def test_raises(self):
     pot = _lj_cpp._ErrorPotential()
     with self.assertRaises(RuntimeError):
         modified_fire = ModifiedFireCPP(_xrand, pot)
         modified_fire.run()
예제 #2
0
 def test_raises(self):
     pot = _lj_cpp._ErrorPotential()
     with self.assertRaises(RuntimeError):
         lbfgs = LBFGS_CPP(_xrand, pot)
         lbfgs.run()
예제 #3
0
 def test_raises(self):
     pot = _lj_cpp._ErrorPotential()
     with self.assertRaises(RuntimeError):
         lbfgs = LBFGS_CPP(_xrand, pot)
         lbfgs.run()
예제 #4
0
 def setUp(self):
     self.pot = _lj_cpp._ErrorPotential()
     self.x = np.random.uniform(-1, 1, [9])
예제 #5
0
 def test_raises(self):
     pot = _lj_cpp._ErrorPotential()
     with self.assertRaises(RuntimeError):
         cgd = CGDescent(_xrand, pot)
         cgd.run()
예제 #6
0
파일: test_lj_cpp.py 프로젝트: jaotta/pele
 def setUp(self):
     self.pot = _lj_cpp._ErrorPotential()
     self.x = np.random.uniform(-1, 1, [9])