Skip to content

Commit

Permalink
Merge pull request GazzolaLab#330 from Ali-7800/master
Browse files Browse the repository at this point in the history
binder snake bug fix
  • Loading branch information
armantekinalp authored Feb 7, 2024
2 parents c2a641e + 45924a5 commit f6b33d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/Binder/2_Slithering_Snake.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,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",
Expand Down

0 comments on commit f6b33d5

Please sign in to comment.