Skip to content

Commit

Permalink
fix static tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapriot committed Oct 13, 2024
1 parent 137d21a commit 8bdf3b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_em_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ def test_current_density(self):
def V_from_Dipole1(
XYZ_M, XYZ_N, rho, cur, loc_a, loc_b
):
XYZ_M = np.atleast_2d(XYZ)
XYZ_M = np.atleast_2d(XYZ_M)

r_vec1 = XYZ_M - loc_a
r_vec2 = XYZ_M - loc_b
Expand All @@ -1371,8 +1371,8 @@ def V_from_Dipole1(
def V_from_Dipole2(
XYZ_M, XYZ_N, rho, cur, loc_a, loc_b
):
XYZ_M = np.atleast_2d(XYZ)
XYZ_N = np.atleast_2d(XYZ_N, 3)
XYZ_M = np.atleast_2d(XYZ_M)
XYZ_N = np.atleast_2d(XYZ_N)

r_vec1 = XYZ_M - loc_a
r_vec2 = XYZ_M - loc_b
Expand All @@ -1393,7 +1393,7 @@ def V_from_Dipole2(
def E_from_Dipole1(
XYZ_M, XYZ_N, rho, cur, loc_a, loc_b
):
XYZ_M = np.atleast_2d(XYZ)
XYZ_M = np.atleast_2d(XYZ_M)

r_vec1 = XYZ_M - loc_a
r_vec2 = XYZ_M - loc_b
Expand All @@ -1407,8 +1407,8 @@ def E_from_Dipole1(
def E_from_Dipole2(
XYZ_M, XYZ_N, rho, cur, loc_a, loc_b
):
XYZ_M = np.atleast_2d(XYZ)
XYZ_N = np.atleast_2d(XYZ_N, 3)
XYZ_M = np.atleast_2d(XYZ_M)
XYZ_N = np.atleast_2d(XYZ_N)

r_vec1 = XYZ_M - loc_a
r_vec2 = XYZ_M - loc_b
Expand Down

0 comments on commit 8bdf3b1

Please sign in to comment.