Skip to content

Commit

Permalink
Restrict the value of 2 variables "window-length" and "polyorder" in …
Browse files Browse the repository at this point in the history
…the example, set the numpy version < 2.0.0 in pyproject.toml (#277)

* set limit of variable window_length and polyorder

* set numpy version < 2.0.0 in pyproject.toml

* add ipywidgets to the docs optional dependencies in pyproject.toml

---------

Co-authored-by: ZoeLi0525 <1558079116@qq.com>
  • Loading branch information
ZoeJacky and ZoeLi0525 authored Sep 3, 2024
1 parent 79c0812 commit 9b3a6d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/notebooks/path_and_velocity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"source": [
"import warnings\n",
"\n",
"import ipywidgets as widgets\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import vstt\n",
Expand Down Expand Up @@ -322,7 +323,11 @@
" plt.show()\n",
"\n",
"\n",
"interact(plot_filter, window_length=30, polyorder=8);"
"interact(\n",
" plot_filter,\n",
" window_length=widgets.IntSlider(min=1, max=40, step=1, value=40),\n",
" polyorder=widgets.IntSlider(min=1, max=40, step=1, value=8),\n",
");"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
]
dependencies = [
"click",
"numpy",
"numpy<2.0.0",
"packaging",
"pillow",
"psychopy",
Expand Down Expand Up @@ -62,6 +62,7 @@ docs = [
"pandoc",
"sphinx>=4.5.0",
"sphinx_rtd_theme>=1.0.0",
"ipywidgets",
]

[tool.setuptools.dynamic]
Expand Down

0 comments on commit 9b3a6d6

Please sign in to comment.