mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-24 13:20:06 +08:00
fixed float issue in innerproducts
This commit is contained in:
@@ -317,6 +317,9 @@ def _makeTensor(M, sigma):
|
||||
if sigma is None: # default is ones
|
||||
sigma = np.ones((M.nC, 1))
|
||||
|
||||
if type(sigma) is float:
|
||||
sigma = np.ones((M.nC, 1))*sigma
|
||||
|
||||
if M.dim == 1:
|
||||
if sigma.size == M.nC: # Isotropic!
|
||||
sigma = mkvc(sigma) # ensure it is a vector.
|
||||
|
||||
Reference in New Issue
Block a user