From ebef6946ee2f1e6c84f646ec15ff674ad7aa1e4c Mon Sep 17 00:00:00 2001 From: Daniel Gaebele <86246113+dtgaebe@users.noreply.github.com> Date: Mon, 9 Feb 2026 16:46:04 -0800 Subject: [PATCH] Minor bug fix tutorial_3_LUPA.ipynb No need to divide by the final time for the RMS torque value --- examples/tutorial_3_LUPA.ipynb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/tutorial_3_LUPA.ipynb b/examples/tutorial_3_LUPA.ipynb index a9a93dbce..4cd34c1bc 100644 --- a/examples/tutorial_3_LUPA.ipynb +++ b/examples/tutorial_3_LUPA.ipynb @@ -1143,8 +1143,7 @@ "# Torque\n", "pto_tdom.sel(realization=0).force.plot(\n", " ax=ax_res1[2], linestyle='solid', color='black', label='PTO trq.')\n", - "pto_rms_tq = np.sqrt(np.mean(pto_tdom.sel(realization=0).force.values**2)\n", - " / pto_tdom.sel(realization=0).time.values[-1])\n", + "pto_rms_tq = np.sqrt(np.mean(pto_tdom.sel(realization=0).force.values**2))\n", "ax_res1[2].plot(\n", " pto_tdom.sel(realization=0).time, pto_rms_tq *\n", " np.ones(pto_tdom.sel(realization=0).time.shape),\n",