From f40ff81c602eb71969801d4d1c9d61b6658ed359 Mon Sep 17 00:00:00 2001 From: Parth Patil Date: Sat, 28 Dec 2024 19:36:45 +0100 Subject: [PATCH] Minor changes --- docs/source/tutorials/denoised_laser.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/tutorials/denoised_laser.ipynb b/docs/source/tutorials/denoised_laser.ipynb index 15b520de..95255efd 100644 --- a/docs/source/tutorials/denoised_laser.ipynb +++ b/docs/source/tutorials/denoised_laser.ipynb @@ -329,7 +329,7 @@ "energy_frac = 0\n", "for i, mode_key in enumerate(list(modeCoeffs)):\n", " tmp_transverse_profile = HermiteGaussianTransverseProfile(\n", - " waist, waist, mode_key[0], mode_key[1], longitudinal_profile.lambda0\n", + " waist[0], waist[1], mode_key[0], mode_key[1], longitudinal_profile.lambda0\n", " )\n", " energy_frac += modeCoeffs[mode_key] ** 2 # Energy fraction of the mode\n", " if i == 0: # First mode (0,0)\n", @@ -367,7 +367,7 @@ "source": [ "# Plot the original and denoised profiles\n", "# Create a grid for plotting\n", - "x = np.linspace(-5 * waist, 5 * waist, 500)\n", + "x = np.linspace(-5 * waist[0], 5 * waist[0], 500)\n", "X, Y = np.meshgrid(x, x)\n", "\n", "# Determine the figure parameters\n", @@ -502,7 +502,7 @@ ], "metadata": { "kernelspec": { - "display_name": "venv", + "display_name": ".venv", "language": "python", "name": "python3" }, @@ -516,7 +516,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.2" + "version": "3.11.4" } }, "nbformat": 4,