mirror of
https://github.com/wassname/simpeg.git
synced 2026-08-11 11:26:01 +08:00
updates to survey and mkvc
This commit is contained in:
@@ -30,6 +30,9 @@ def mkvc(x, numDims=1):
|
||||
if type(x) == np.matrix:
|
||||
x = np.array(x)
|
||||
|
||||
if hasattr(x, 'tovec'):
|
||||
x = x.tovec()
|
||||
|
||||
assert type(x) == np.ndarray, "Vector must be a numpy array"
|
||||
|
||||
if numDims == 1:
|
||||
|
||||
Reference in New Issue
Block a user