Regularization is on the Model, so it needs to take that as input.

Testing is completed on every SimPEG regularization object by default.
This commit is contained in:
rowanc1
2014-01-22 19:17:15 -07:00
parent 1055b613ce
commit 5452f2be4b
4 changed files with 125 additions and 89 deletions
+5
View File
@@ -50,6 +50,11 @@ class BaseModel(object):
"""
return sp.identity(m.size)
@property
def nP(self):
"""Number of parameters in the model."""
return self.mesh.nC
def example(self, modelType=None):
return np.random.rand(self.mesh.nC)