Skip to content

Commit

Permalink
Merge branch 'main' into restore-kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
leouieda authored Feb 20, 2024
2 parents 5c2062d + c8dc220 commit 29be314
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions choclo/dipole/_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ def magnetic_field(
b_n = c_m * (
3 * dotproduct * r_n / distance**5 - magnetic_moment_north / distance**3
)
b_u = c_m * (
3 * dotproduct * r_u / distance**5 - magnetic_moment_up / distance**3
)
b_u = c_m * (3 * dotproduct * r_u / distance**5 - magnetic_moment_up / distance**3)
return b_e, b_n, b_u


Expand Down Expand Up @@ -297,9 +295,7 @@ def magnetic_n(
+ magnetic_moment_north * r_n
+ magnetic_moment_up * r_u
)
result = (
3 * dotproduct * r_n / distance**5 - magnetic_moment_north / distance**3
)
result = 3 * dotproduct * r_n / distance**5 - magnetic_moment_north / distance**3
return VACUUM_MAGNETIC_PERMEABILITY / 4 / np.pi * result


Expand Down

0 comments on commit 29be314

Please sign in to comment.