Git Product home page Git Product logo

wyrm's People

Contributors

hendrikheller avatar k-kagurazaka avatar serhiy-shekhovtsov avatar venthur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wyrm's Issues

Online experiment error

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

Thank you
wyrmerror

TypeError: '<' not supported between instances of 'tuple' and 'list'

I am running the code for dataset 2 from wyrm/examples/BCI Competition 3, Data Set 2 (P300 Speller).ipynb. during running of last step I am facing the error "TypeError: '<' not supported between instances of 'tuple' and 'list'".

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'

select_channels error

Hi!
I run code python wyrm/test/test_select_channels.py and I get an error
Thanks for everything.

nahuel@nahuel-Notebook:~/Documents/Tutoriales/wyrm/test$ python test_select_channels.py
EEEE

ERROR: test_select_channels (main.TestSelectChannels)
Selecting channels with an array of regexes.

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

======================================================================
ERROR: test_select_channels_copy (main.TestSelectChannels)
Select channels must not change the original parameter.

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

======================================================================
ERROR: test_select_channels_inverse (main.TestSelectChannels)
Removing channels with an array of regexes.

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

======================================================================
ERROR: test_select_channels_swapaxis (main.TestSelectChannels)
Select channels works with non default chanaxis.

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)
nahuel@nahuel-Notebook:~/Documents/TESIS/Tutoriales/wyrm/test$ python test_select_channels.py
EEEE

ERROR: test_select_channels (main.TestSelectChannels)
Selecting channels with an array of regexes.

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

======================================================================
ERROR: test_select_channels_copy (main.TestSelectChannels)
Select channels must not change the original parameter.

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

======================================================================
ERROR: test_select_channels_inverse (main.TestSelectChannels)
Removing channels with an array of regexes.

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

======================================================================
ERROR: test_select_channels_swapaxis (main.TestSelectChannels)
Select channels works with non default chanaxis.

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.