Testing problem and DCProblem.

This commit is contained in:
Rowan Cockett
2013-10-03 15:15:08 -07:00
parent 7cf8ef2310
commit fb69446cfb
3 changed files with 109 additions and 9 deletions
-9
View File
@@ -327,12 +327,3 @@ class SyntheticProblem(object):
eps = np.linalg.norm(mkvc(dobs),2)*1e-5
Wd = 1/(abs(dobs)*std+eps)
return dobs, Wd
if __name__ == '__main__':
from SimPEG.inverse import checkDerivative
p = Problem(None)
m = np.random.rand(5)
checkDerivative(lambda m : [p.modelTransform(m), p.modelTransformDeriv(m)], m, plotIt=False)