Update rv_transformation_tests.py

This commit is contained in:
Max Zwiessele 2015-09-13 18:42:17 +01:00
parent 4da8a4686b
commit 79b119befb

View file

@ -61,7 +61,7 @@ class RVTransformationTestCase(unittest.TestCase):
for i in range(checks):
m.theta = theta_s[i]
print(m.theta, m.optimizer_array, m.param_array)
if not m.checkgrad():
if not m.checkgrad(1):
checks_failes += 1.
self.assertTrue(checks_failed/checks > .5)