Generalize mapPair

This commit is contained in:
Brendan Smithyman
2015-11-26 19:18:04 -05:00
parent ca3b44bacc
commit 528253a8cb
+1 -1
View File
@@ -24,7 +24,7 @@ class BaseRegularization(object):
Utils.setKwargs(self, **kwargs)
self.mesh = mesh
assert isinstance(mesh, Mesh.BaseMesh), "mesh must be a SimPEG.Mesh object."
self.mapping = mapping or Maps.IdentityMap(mesh)
self.mapping = mapping or self.mapPair(mesh)
self.mapping._assertMatchesPair(self.mapPair)
@property