Moved testing code to the test directory. added __init__.py and some documentation.

This commit is contained in:
Rowan Cockett
2013-10-03 14:55:22 -07:00
parent bed86b9ce4
commit 7cf8ef2310
14 changed files with 144 additions and 274 deletions
-4
View File
@@ -191,10 +191,6 @@ class Problem(object):
"""
return sdiag(np.exp(mkvc(m)))
def _test_modelTransformDeriv(self):
m = np.random.rand(5)
return checkDerivative(lambda m : [self.modelTransform(m), self.modelTransformDeriv(m)], m)
def misfit(self, m, u=None):
"""
:param numpy.array m: geophysical model