mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-30 11:09:41 +08:00
changed check of out.shape, since if out is a vector (not an array with width 1), out.shape[1] does not exsist
This commit is contained in:
+2
-3
@@ -160,9 +160,8 @@ class Fields(object):
|
||||
assert hasattr(self, func), 'The alias field function is a string, but it does not exist in the Fields class.'
|
||||
func = getattr(self, func)
|
||||
out = func(self._fields[alias][:,ind], srcII)
|
||||
|
||||
if out.shape[1] == 1:
|
||||
out = Utils.mkvc(out)
|
||||
if not out.size > out.shape[0]:
|
||||
out = Utils.mkvc(out)
|
||||
return out
|
||||
|
||||
def __contains__(self, other):
|
||||
|
||||
Reference in New Issue
Block a user