Skip to content

Commit

Permalink
Update fir_filter.ipynb
Browse files Browse the repository at this point in the history
API change for kaiser windows
  • Loading branch information
fs446 committed Mar 2, 2025
1 parent 8767d21 commit a7090d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions filter_design/fir_filter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@
"outputs": [],
"source": [
"# 7 coeff, beta such that DC gain about 5\n",
"b = signal.kaiser(7, beta=2.15, sym=True)\n",
"b = signal.windows.kaiser(7, beta=2.15, sym=True)\n",
"bode_plot(b, fig=plt.figure(figsize=figsize))\n",
"np.sum(b)"
]
Expand Down Expand Up @@ -942,7 +942,7 @@
"beta = -0.1102 * (StopBandMaxLevel + 8.7)\n",
"# beta = 0 # beta = 0 is equal to the rectangular window!\n",
"print(\"beta =\", beta)\n",
"w = signal.kaiser(M + 1, beta, sym=True)"
"w = signal.windows.kaiser(M + 1, beta, sym=True)"
]
},
{
Expand Down Expand Up @@ -1046,7 +1046,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.13.2"
}
},
"nbformat": 4,
Expand Down

0 comments on commit a7090d2

Please sign in to comment.