Skip to content

Commit

Permalink
Fixed bug with reference to raw_data in Muse data load; assigned band…
Browse files Browse the repository at this point in the history
…pass stop and start values in analyze_channel.py
  • Loading branch information
Photosynthesis committed Feb 8, 2017
1 parent fa25bfe commit 652b409
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions EEGrunt.py
Expand Up @@ -61,6 +61,7 @@ def load_data(self):

if source == 'muse':
skiprows = 0
raw_data = []
with open(path + filename, 'rb') as csvfile:
for row in csvfile:
cols = row.split(',')
Expand Down
4 changes: 3 additions & 1 deletion analyze_channel.py
Expand Up @@ -50,7 +50,9 @@

# Returns bandpassed data
# (uses scipy.signal butterworth filter)
EEG.data = EEG.bandpass(start,stop)
start_Hz = 1
stop_Hz = 50
EEG.data = EEG.bandpass(start_Hz,stop_Hz)

# Make Spectrogram
EEG.spectrogram()
Expand Down

0 comments on commit 652b409

Please sign in to comment.