bbci / wyrm Goto Github PK
View Code? Open in Web Editor NEWThis project forked from venthur/wyrm
Python toolbox for Brain-Computer Interfacing (BCI)
License: MIT License
This project forked from venthur/wyrm
Python toolbox for Brain-Computer Interfacing (BCI)
License: MIT License
Hi,
First of all thank you for developing a very useful library with a good documentation guide.
I am using this library for a EEG classification and was really interested in trying the online code which is given.
I am getting an error as shown in below image when I run the code.
Could you please let me know what's the issue
TypeError Traceback (most recent call last)
in
14
15 # load the training set
---> 16 dat = load_bcicomp3_ds2(training_set)
17 fv_train, epo[subject] = preprocessing(dat, MARKER_DEF_TRAIN, jumping_means_ivals)
18 # train the lda
/opt/conda/lib/python3.7/site-packages/wyrm/io.py in load_bcicomp3_ds2(filename)
486 markers.extend(nontargets)
487 markers.extend(stimulus_code)
--> 488 markers.sort()
489 dat.markers = markers[:]
490 return dat
TypeError: '<' not supported between instances of 'tuple' and 'list'
Hi!
I run code python wyrm/test/test_select_channels.py and I get an error
Thanks for everything.
Traceback (most recent call last):
File "test_select_channels.py", line 22, in test_select_channels
self.dat = select_channels(self.dat, ['ca.*', 'cc1'])
File "/home/nahuel/.local/lib/python3.7/site-packages/wyrm/processing.py", line 455, in select_channels
m = re.match(regexp, c, re.IGNORECASE | re.LOCALE)
File "/usr/lib/python3.7/re.py", line 173, in match
return _compile(pattern, flags).match(string)
File "/usr/lib/python3.7/re.py", line 286, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python3.7/sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib/python3.7/sre_parse.py", line 934, in parse
p.pattern.flags = fix_flags(str, p.pattern.flags)
File "/usr/lib/python3.7/sre_parse.py", line 901, in fix_flags
raise ValueError("cannot use LOCALE flag with a str pattern")
ValueError: cannot use LOCALE flag with a str pattern
Traceback (most recent call last):
File "test_select_channels.py", line 36, in test_select_channels_copy
select_channels(self.dat, ['ca.*'])
File "/home/nahuel/.local/lib/python3.7/site-packages/wyrm/processing.py", line 455, in select_channels
m = re.match(regexp, c, re.IGNORECASE | re.LOCALE)
File "/usr/lib/python3.7/re.py", line 173, in match
return _compile(pattern, flags).match(string)
File "/usr/lib/python3.7/re.py", line 286, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python3.7/sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib/python3.7/sre_parse.py", line 934, in parse
p.pattern.flags = fix_flags(str, p.pattern.flags)
File "/usr/lib/python3.7/sre_parse.py", line 901, in fix_flags
raise ValueError("cannot use LOCALE flag with a str pattern")
ValueError: cannot use LOCALE flag with a str pattern
Traceback (most recent call last):
File "test_select_channels.py", line 29, in test_select_channels_inverse
self.dat = select_channels(self.dat, ['ca.*', 'cc1'], invert=True)
File "/home/nahuel/.local/lib/python3.7/site-packages/wyrm/processing.py", line 455, in select_channels
m = re.match(regexp, c, re.IGNORECASE | re.LOCALE)
File "/usr/lib/python3.7/re.py", line 173, in match
return _compile(pattern, flags).match(string)
File "/usr/lib/python3.7/re.py", line 286, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python3.7/sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib/python3.7/sre_parse.py", line 934, in parse
p.pattern.flags = fix_flags(str, p.pattern.flags)
File "/usr/lib/python3.7/sre_parse.py", line 901, in fix_flags
raise ValueError("cannot use LOCALE flag with a str pattern")
ValueError: cannot use LOCALE flag with a str pattern
Traceback (most recent call last):
File "test_select_channels.py", line 41, in test_select_channels_swapaxis
dat1 = select_channels(swapaxes(self.dat, 0, 1), ['ca.*'], chanaxis=0)
File "/home/nahuel/.local/lib/python3.7/site-packages/wyrm/processing.py", line 455, in select_channels
m = re.match(regexp, c, re.IGNORECASE | re.LOCALE)
File "/usr/lib/python3.7/re.py", line 173, in match
return _compile(pattern, flags).match(string)
File "/usr/lib/python3.7/re.py", line 286, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python3.7/sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib/python3.7/sre_parse.py", line 934, in parse
p.pattern.flags = fix_flags(str, p.pattern.flags)
File "/usr/lib/python3.7/sre_parse.py", line 901, in fix_flags
raise ValueError("cannot use LOCALE flag with a str pattern")
ValueError: cannot use LOCALE flag with a str pattern
Ran 4 tests in 0.002s
Traceback (most recent call last):
File "test_select_channels.py", line 22, in test_select_channels
self.dat = select_channels(self.dat, ['ca.*', 'cc1'])
File "/home/nahuel/.local/lib/python3.7/site-packages/wyrm/processing.py", line 455, in select_channels
m = re.match(regexp, c, re.IGNORECASE | re.LOCALE)
File "/usr/lib/python3.7/re.py", line 173, in match
return _compile(pattern, flags).match(string)
File "/usr/lib/python3.7/re.py", line 286, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python3.7/sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib/python3.7/sre_parse.py", line 934, in parse
p.pattern.flags = fix_flags(str, p.pattern.flags)
File "/usr/lib/python3.7/sre_parse.py", line 901, in fix_flags
raise ValueError("cannot use LOCALE flag with a str pattern")
ValueError: cannot use LOCALE flag with a str pattern
Traceback (most recent call last):
File "test_select_channels.py", line 36, in test_select_channels_copy
select_channels(self.dat, ['ca.*'])
File "/home/nahuel/.local/lib/python3.7/site-packages/wyrm/processing.py", line 455, in select_channels
m = re.match(regexp, c, re.IGNORECASE | re.LOCALE)
File "/usr/lib/python3.7/re.py", line 173, in match
return _compile(pattern, flags).match(string)
File "/usr/lib/python3.7/re.py", line 286, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python3.7/sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib/python3.7/sre_parse.py", line 934, in parse
p.pattern.flags = fix_flags(str, p.pattern.flags)
File "/usr/lib/python3.7/sre_parse.py", line 901, in fix_flags
raise ValueError("cannot use LOCALE flag with a str pattern")
ValueError: cannot use LOCALE flag with a str pattern
Traceback (most recent call last):
File "test_select_channels.py", line 29, in test_select_channels_inverse
self.dat = select_channels(self.dat, ['ca.*', 'cc1'], invert=True)
File "/home/nahuel/.local/lib/python3.7/site-packages/wyrm/processing.py", line 455, in select_channels
m = re.match(regexp, c, re.IGNORECASE | re.LOCALE)
File "/usr/lib/python3.7/re.py", line 173, in match
return _compile(pattern, flags).match(string)
File "/usr/lib/python3.7/re.py", line 286, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python3.7/sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib/python3.7/sre_parse.py", line 934, in parse
p.pattern.flags = fix_flags(str, p.pattern.flags)
File "/usr/lib/python3.7/sre_parse.py", line 901, in fix_flags
raise ValueError("cannot use LOCALE flag with a str pattern")
ValueError: cannot use LOCALE flag with a str pattern
Traceback (most recent call last):
File "test_select_channels.py", line 41, in test_select_channels_swapaxis
dat1 = select_channels(swapaxes(self.dat, 0, 1), ['ca.*'], chanaxis=0)
File "/home/nahuel/.local/lib/python3.7/site-packages/wyrm/processing.py", line 455, in select_channels
m = re.match(regexp, c, re.IGNORECASE | re.LOCALE)
File "/usr/lib/python3.7/re.py", line 173, in match
return _compile(pattern, flags).match(string)
File "/usr/lib/python3.7/re.py", line 286, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python3.7/sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib/python3.7/sre_parse.py", line 934, in parse
p.pattern.flags = fix_flags(str, p.pattern.flags)
File "/usr/lib/python3.7/sre_parse.py", line 901, in fix_flags
raise ValueError("cannot use LOCALE flag with a str pattern")
ValueError: cannot use LOCALE flag with a str pattern
Ran 4 tests in 0.002s
FAILED (errors=4)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.