mirror of
https://github.com/wassname/simpeg.git
synced 2026-08-17 11:26:45 +08:00
curModel in problem and combo maps no longer takes a mesh.
This commit is contained in:
@@ -6,6 +6,8 @@ class Model(np.ndarray):
|
||||
|
||||
def __new__(cls, input_array, mapping=None):
|
||||
assert isinstance(mapping, IdentityMap), 'mapping must be a SimPEG.Mapping'
|
||||
assert isinstance(input_array, np.ndarray), 'input_array must be a numpy array'
|
||||
assert len(input_array.shape) == 1, 'input_array must be a 1D vector'
|
||||
obj = np.asarray(input_array).view(cls)
|
||||
obj._mapping = mapping
|
||||
if not obj.size == mapping.nP:
|
||||
|
||||
Reference in New Issue
Block a user