analytics return arrays

This commit is contained in:
Lindsey Heagy
2015-05-28 11:15:58 -07:00
parent f080c61f74
commit 8d97f322c9
+10
View File
@@ -99,5 +99,15 @@ def AnalyticMagDipoleWholeSpace(XYZ, srcLoc, sig, f, m=1., orientation='X'):
Bx = mu_0*Hx
By = mu_0*Hy
Bz = mu_0*Hz
if Bx.ndim is 1:
Bx = Utils.mkvc(Bx,2)
if By.ndim is 1:
By = Utils.mkvc(By,2)
if Bz.ndim is 1:
Bz = Utils.mkvc(Bz,2)
return Bx, By, Bz