Skip to content

Commit 06ad971

Browse files
committed
Remove extra comments
1 parent f600ae5 commit 06ad971

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Notebooks/emg.ipynb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 44,
5+
"execution_count": 45,
66
"metadata": {},
77
"outputs": [
88
{
@@ -51,16 +51,16 @@
5151
"plt.legend()\n",
5252
"plt.show()\n",
5353
"\n",
54-
"# # Apply a High-Pass Filter at 70 Hz\n",
55-
"# def highpass_filter(signal, cutoff=70, fs=500, order=4):\n",
56-
"# nyquist = 0.5 * fs # Nyquist frequency\n",
57-
"# normal_cutoff = cutoff / nyquist # Normalize cutoff frequency\n",
58-
"# b, a = butter(order, normal_cutoff, btype='high', analog=False)\n",
59-
"# filtered_signal = filtfilt(b, a, signal)\n",
60-
"# return filtered_signal\n",
54+
"# Apply a High-Pass Filter at 70 Hz\n",
55+
"def highpass_filter(signal, cutoff=70, fs=500, order=4):\n",
56+
" nyquist = 0.5 * fs # Nyquist frequency\n",
57+
" normal_cutoff = cutoff / nyquist # Normalize cutoff frequency\n",
58+
" b, a = butter(order, normal_cutoff, btype='high', analog=False)\n",
59+
" filtered_signal = filtfilt(b, a, signal)\n",
60+
" return filtered_signal\n",
6161
"\n",
62-
"# # Filter the cleaned EMG signal with a high-pass filter\n",
63-
"# emg_filtered = highpass_filter(emg_signal, cutoff=70, fs=500)\n",
62+
"# Filter the cleaned EMG signal with a high-pass filter\n",
63+
"emg_filtered = highpass_filter(emg_signal, cutoff=70, fs=500)\n",
6464
"\n",
6565
"# EMG Envelope\n",
6666
"def plot_emg_envelope(emg_signal, fs=500):\n",

0 commit comments

Comments
 (0)