Skip to content

[MRG] Epoch rejection by annotations. - #2821

Merged
agramfort merged 25 commits into
mne-tools:masterfrom
jaeilepp:epoch-rejection
Apr 20, 2016
Merged

agramfort merged 25 commits into
mne-tools:masterfrom
jaeilepp:epoch-rejection

Conversation

@jaeilepp

Copy link
Copy Markdown
Contributor

The annotation descriptions are also visible in raw.plot.

Comment thread mne/io/base.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name suggests function returns a bool

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you write a docstring to better understand what it should be doing?

@agramfort agramfort changed the title Epoch rejection by annotations. [WIP] Epoch rejection by annotations. Jan 27, 2016
@agramfort

Copy link
Copy Markdown
Member

let me know when you have tests

@jasmainak

Copy link
Copy Markdown
Member

also, don't forget the documentation. I think you promised to add it in this PR

Comment thread mne/annotations.py

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you document the parameters too? Even with private functions, it's convenient to have full documentation.

@dengemann

Copy link
Copy Markdown
Member

Where has this one actually gone? Any blockers here?

@jaeilepp

jaeilepp commented Mar 4, 2016

Copy link
Copy Markdown
Contributor Author

Any blockers here?

Probably not anymore, except the contamination at 300ms in the standard case.
I can work on this again on monday.

@dengemann

Copy link
Copy Markdown
Member

I'm happy to join/ take a look with you. Ping me when you resume / want to look into it together.

@jaeilepp

jaeilepp commented Mar 9, 2016

Copy link
Copy Markdown
Contributor Author

How do I update the bst dataset? I need to add transformation and inner-skull files to the dataset.

@larsoner

larsoner commented Mar 9, 2016

Copy link
Copy Markdown
Member

Now you bother @dengemann :) But really you can put the file somewhere he or I can upload it for you

@jaeilepp

jaeilepp commented Mar 9, 2016

Copy link
Copy Markdown
Contributor Author

Okay. I shared them in google drive with you guys. Trans file should go to 'MEG/bst_auditory' and inner-skull to 'bem' folder for it to work without any modifications to the code.

@dengemann

Copy link
Copy Markdown
Member

Thanks. Received.

@agramfort

Copy link
Copy Markdown
Member

is this MRG?

can you see why travis is not happy?

@larsoner

Copy link
Copy Markdown
Member

There was some gfortran cruft from old Anaconda errors, I restarted so hopefully it will come back positive or more meaningfully negative

@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 3167856 on jaeilepp:epoch-rejection into * on mne-tools:master*.

@jaeilepp

Copy link
Copy Markdown
Contributor Author

Now this is basically ready, but the tutorial takes a really long time to run. Especially make_bem_solution takes a long time. The bem solution could be added to the dataset, but I also feel that we should have at least one example or tutorial that actually does this. I remember it being a mystery to myself when I started doing this.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.008%) to 90.845% when pulling 4bcd024 on jaeilepp:epoch-rejection into f4f302f on mne-tools:master.

@agramfort

Copy link
Copy Markdown
Member

how long does it take?

@@ -0,0 +1,16 @@

Annotations
###########

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you insert this file somewhere in the doc?

@jaeilepp

Copy link
Copy Markdown
Contributor Author

how long does it take?

The whole thing takes around 15 mins on my computer.

@larsoner

Copy link
Copy Markdown
Member

The whole thing takes around 15 mins on my computer.

I'm -1 on adding that much time to the doc building process. Can we somehow have the example or tutorial but not make it take so long to build the doc?

@agramfort

agramfort commented Apr 1, 2016 via email

Copy link
Copy Markdown
Member

@larsoner

larsoner commented Apr 1, 2016

Copy link
Copy Markdown
Member

Perhaps we could also add the BEM to the dataset so that when it is run, people don't necessarily have to re-run that bit of code. So something like this:

run_bem=False
run_inv=True

by default might already be good enough. Would that cut it down e.g. from 15 to 2 minutes, or is the BEM not a large majority of the time?

@agramfort

Copy link
Copy Markdown
Member

this example seems to require a lot of memory (more than 5GB of RAM on my machine).

can we do better?

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-13.05%) to 77.799% when pulling 54dd92f on jaeilepp:epoch-rejection into f4f302f on mne-tools:master.

@jaeilepp

jaeilepp commented Apr 4, 2016

Copy link
Copy Markdown
Contributor Author

this example seems to require a lot of memory

I'm not sure. The data is filtered and that means it needs to be preloaded. The files are quite big and I'm thinking that maybe this shouldn't be run when building docs. Perhaps just a static web page?

@larsoner

larsoner commented Apr 4, 2016 via email

Copy link
Copy Markdown
Member

@jaeilepp

jaeilepp commented Apr 4, 2016

Copy link
Copy Markdown
Contributor Author

We decided to go for not preloading the data and filter at the evoked stage. We also decided that we can have a 'memory saving' flag, which means that all the heavy computation is done beforehand and read from files. The computation of eog projections also needs preloaded data, but maybe we can live without and only do it when memory saving is turned off

@agramfort

Copy link
Copy Markdown
Member

travis is related to file download we're good here.

nice work @jaeilepp !

@agramfort
agramfort merged commit 045abeb into mne-tools:master Apr 20, 2016
@agramfort

Copy link
Copy Markdown
Member

merge by rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants