From 64dec62fe027739c0f3cb63f9a0339ee5f5dc8eb Mon Sep 17 00:00:00 2001 From: Colwyn Gulliford <36416205+ColwynGulliford@users.noreply.github.com> Date: Wed, 30 Oct 2024 06:55:43 -0400 Subject: [PATCH] add --- docs/examples/fields/field_conversion.ipynb | 2 +- docs/examples/fields/field_expansion.ipynb | 2 +- pmd_beamphysics/fields/analysis.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/examples/fields/field_conversion.ipynb b/docs/examples/fields/field_conversion.ipynb index 42251fc..2993314 100644 --- a/docs/examples/fields/field_conversion.ipynb +++ b/docs/examples/fields/field_conversion.ipynb @@ -351,7 +351,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.7" + "version": "3.9.18" } }, "nbformat": 4, diff --git a/docs/examples/fields/field_expansion.ipynb b/docs/examples/fields/field_expansion.ipynb index 93cd7c6..4fcd8da 100644 --- a/docs/examples/fields/field_expansion.ipynb +++ b/docs/examples/fields/field_expansion.ipynb @@ -630,7 +630,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.7" + "version": "3.9.18" } }, "nbformat": 4, diff --git a/pmd_beamphysics/fields/analysis.py b/pmd_beamphysics/fields/analysis.py index 59c0fe2..a59a46d 100644 --- a/pmd_beamphysics/fields/analysis.py +++ b/pmd_beamphysics/fields/analysis.py @@ -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") @@ -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()