Skip to content

Commit

Permalink
fix mkvc to return an (n,1) array for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowan Cockett committed May 29, 2015
1 parent de27c4e commit 2827e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimPEG/Fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def _getField(self, name, ind):
for i, TIND_i in enumerate(timeII):
fieldI = pointerFields[:,:,i]
if fieldI.shape[0] == fieldI.size:
fieldI = Utils.mkvc(fieldI)
fieldI = Utils.mkvc(fieldI, 2)
out[i] = func(fieldI, srcII, TIND_i)
if out[i].ndim == 1:
out[i] = out[i][:,np.newaxis,np.newaxis]
Expand Down

0 comments on commit 2827e85

Please sign in to comment.