Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
ColwynGulliford committed Oct 30, 2024
1 parent 026b6bf commit 64dec62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/examples/fields/field_conversion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/fields/field_expansion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions pmd_beamphysics/fields/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,9 @@ def check_static_div_equation(FM, plot=False, rtol=1e-4, **kwargs):
assert FM.is_static, "Must provide a static FieldMesh"

if FM.geometry == "cylindrical":
return check_static_div_equation_cylindrical(FM, plot=plot, rtol=rtol, *kwargs)
return check_static_div_equation_cylindrical(FM, plot=plot, rtol=rtol, **kwargs)
elif FM.geometry == "rectangular":
return check_static_div_equation_cartesian(FM, plot=plot, rtol=rtol, *kwargs)
return check_static_div_equation_cartesian(FM, plot=plot, rtol=rtol, **kwargs)

else:
raise ValueError("Unknown FieldMesh geometry")
Expand Down Expand Up @@ -732,7 +732,7 @@ def plot_curl_equations_cylindrical(FM, ir=None, plot_diff=True):
)
axs[0].plot(z, np.real(1j * w * Bth)[ir, :], label=r"$\Re[i\omega B_{\theta}]$")
axs[0].set_xlabel("z (m)")
axs[0].set_ylabel("(V/m^2)")
axs[0].set_ylabel("($V/m^2$)")
axs[0].set_title(rf"Fields evaluated at $r=${r[ir]:0.6f} meters.")
axs[0].legend()

Expand Down

0 comments on commit 64dec62

Please sign in to comment.