Merge pull request #92 from simpeg/master

merge fix in fields size to removeSrcType
This commit is contained in:
Lindsey
2015-05-07 15:39:00 -07:00
+1 -2
View File
@@ -160,8 +160,7 @@ 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:
if out.shape[0] == out.size:
out = Utils.mkvc(out)
return out