From bc26a583b5a0ab6c53bb3f071dfe55f9110ba090 Mon Sep 17 00:00:00 2001 From: Ali-7800 <47090295+Ali-7800@users.noreply.github.com> Date: Wed, 7 Feb 2024 14:15:09 -0600 Subject: [PATCH] binder snake bug fix --- examples/Binder/2_Slithering_Snake.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Binder/2_Slithering_Snake.ipynb b/examples/Binder/2_Slithering_Snake.ipynb index fd41d9c75..aecf9cb94 100644 --- a/examples/Binder/2_Slithering_Snake.ipynb +++ b/examples/Binder/2_Slithering_Snake.ipynb @@ -422,8 +422,8 @@ " # zero mean.\n", "\n", " # Number of steps in one period.\n", - " period_step = int(1.0 / (time_per_period[-1] - time_per_period[-2])) + 1\n", - " number_of_period = int(time_per_period[-1]) + 1\n", + " period_step = int(1.0 / (time_per_period[-1] - time_per_period[-2]))\n", + " number_of_period = int(time_per_period[-1])\n", "\n", " # Center of mass position averaged in one period\n", " center_of_mass_averaged_over_one_period = np.zeros((number_of_period - 2, 3))\n",