Skip to content

Commit 673abf6

Browse files
authored
Merge pull request #39 from KotMorderca/patch-1
fix sample in ButterworthBandpass to be runable
2 parents 67c120b + 12b00a4 commit 673abf6

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)