Skip to content

[MRG] Update brainstorm examples/tutorials to use ctf files rather than fif versions - #5628

Merged
larsoner merged 7 commits into
mne-tools:masterfrom
massich:use_ctf_files_in_examples
Oct 26, 2018
Merged

larsoner merged 7 commits into
mne-tools:masterfrom
massich:use_ctf_files_in_examples

Conversation

@massich

@massich massich commented Oct 17, 2018 •

Copy link
Copy Markdown
Contributor

Datasets that need to be updated:

  • bst_raw -> ds
  • bst_resting -> ds
  • bst_resting trans file
  • bst_resting BEM and src (only structural dep)

Examples that need translation:

  • examples/datasets/plot_brainstorm_data.py

@mne-tools/contributors feel free to update list

Closes #4184.

@bloyl

bloyl commented Oct 17, 2018

Copy link
Copy Markdown
Contributor

Just a note the bst_resting dataset needs a trans file - see #4184

@massich massich added this to the 0.17 milestone Oct 17, 2018
@massich

massich commented Oct 17, 2018

Copy link
Copy Markdown
Contributor Author

Thx @bloyl I'll get all the help I can get on this one. Feel free to update the description and put all the examples that you think need translation.

@massich

massich commented Oct 17, 2018

Copy link
Copy Markdown
Contributor Author

Whatever I did in 5fc5c08 will not work. It does not make sense. The original example is somato dataset but I cannot find it. Not in https://neuroimage.usc.edu/brainstorm/Tutorials, neither in our codebase:

brainstorm=dict(
bst_auditory='https://osf.io/5t9n8/download',
bst_phantom_ctf='https://osf.io/sxr8y/download',
bst_phantom_elekta='https://osf.io/dpcku/download',
bst_raw='https://osf.io/9675n/download',
bst_resting='https://osf.io/m7bd3/download'),

plus, the recording dates do not match at all. One is 2011.. and the other 2013..

ping @jasmainak any ideas?

@bloyl

bloyl commented Oct 17, 2018

Copy link
Copy Markdown
Contributor

reject = dict(mag=4e-12, eog=250e-6)

data_path = bst_raw.data_path()
data_path = bst_auditory.data_path()

Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the second is the file. Thx.

@jasmainak

Copy link
Copy Markdown
Member


import mne
from mne.datasets.brainstorm import bst_raw
from mne.datasets.brainstorm import bst_auditory

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.

this is not the objective.

the objective is not to use the auditory data but you replace on OSF the bst_raw with an archive that contains the original CTF files

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes the file should be sample_raw and make new version of bst_raw

@larsoner

Copy link
Copy Markdown
Member

@bloyl wants to make some progress on this so I'm going to try to package some data and push some commits to move this forward

@larsoner larsoner changed the title [WIP] Update brainstorm examples/tutorials to use ctf files rather than fif versions [MRG] Update brainstorm examples/tutorials to use ctf files rather than fif versions Oct 25, 2018
@codecov

codecov Bot commented Oct 25, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #5628 into master will decrease coverage by 9.26%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5628      +/-   ##
==========================================
- Coverage   88.44%   79.17%   -9.27%     
==========================================
  Files         363      368       +5     
  Lines       68236    68874     +638     
  Branches    11528    11615      +87     
==========================================
- Hits        60352    54532    -5820     
- Misses       5043    11720    +6677     
+ Partials     2841     2622     -219

@larsoner

Copy link
Copy Markdown
Member

Okay should be good to go.

I updated to CTF but did not do the trans+bem+src for the bst_raw data. Once someone is interested in doing source analysis with those data and does a trans, etc. I'm happy to update later.

@larsoner

Copy link
Copy Markdown
Member

Okay I'll merge so that other PRs can move forward with the new data

@larsoner
larsoner merged commit 46585fb into mne-tools:master Oct 26, 2018
@massich
massich deleted the use_ctf_files_in_examples branch October 29, 2018 12:06
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.

5 participants