Skip to content

Commit 12b00a4

Browse files
authored
fix sample in ButterworthBandpass to be runable
Added conversion to int of nsamples
1 parent 67c120b commit 12b00a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ipython/ButterworthBandpass.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"\n",
7070
" # Filter a noisy signal.\n",
7171
" T = 0.05\n",
72-
" nsamples = T * fs\n",
72+
" nsamples = int(T * fs)\n",
7373
" t = np.linspace(0, T, nsamples, endpoint=False)\n",
7474
" a = 0.02\n",
7575
" f0 = 600.0\n",
@@ -120,4 +120,4 @@
120120
"metadata": {}
121121
}
122122
]
123-
}
123+
}

0 commit comments

Comments
 (0)