magDipole Bug

This commit is contained in:
rowanc1
2014-04-15 09:19:49 -07:00
parent 20d1ad27c8
commit 3f7f95de8c
+3 -1
View File
@@ -37,4 +37,6 @@ def MagneticDipoleVectorPotential(txLoc, obsLoc, component, dipoleMoment=(0., 0.
mCr = np.cross(m, dR)
r = np.sqrt((dR**2).sum(axis=1))
A[:, i] = -(mu_0/(4*pi)) * mCr[:,dimInd]/(r**3)
return A
if nTx == 1:
return A.flatten()
return A