From 9fc4d634077dfcb9b33290652897920c8674838e Mon Sep 17 00:00:00 2001 From: ZoeLi0525 <1558079116@qq.com> Date: Tue, 27 Aug 2024 14:21:50 +0200 Subject: [PATCH 1/3] set limit of variable window_length and polyorder --- docs/notebooks/path_and_velocity.ipynb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/notebooks/path_and_velocity.ipynb b/docs/notebooks/path_and_velocity.ipynb index ae1318c..bcc4e11 100644 --- a/docs/notebooks/path_and_velocity.ipynb +++ b/docs/notebooks/path_and_velocity.ipynb @@ -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", @@ -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", + ");" ] }, { From d4f13acc1e0780b87b3ae6384ecde8d184ff365d Mon Sep 17 00:00:00 2001 From: ZoeLi0525 <1558079116@qq.com> Date: Tue, 27 Aug 2024 16:52:13 +0200 Subject: [PATCH 2/3] set numpy version < 2.0.0 in pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 32e670f..f98ebef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ classifiers = [ ] dependencies = [ "click", - "numpy", + "numpy<2.0.0", "packaging", "pillow", "psychopy", From a4b3e447fcfe29b501f47683e69e418d19f8da60 Mon Sep 17 00:00:00 2001 From: ZoeLi0525 <1558079116@qq.com> Date: Tue, 3 Sep 2024 11:18:06 +0200 Subject: [PATCH 3/3] add ipywidgets to the docs optional dependencies in pyproject.toml --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index f98ebef..e8aef5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,6 +62,7 @@ docs = [ "pandoc", "sphinx>=4.5.0", "sphinx_rtd_theme>=1.0.0", + "ipywidgets", ] [tool.setuptools.dynamic]