Skip to content

Conversation

@jaeilepp
Copy link
Contributor

@jaeilepp jaeilepp commented Jul 1, 2016

Closes #3112

@codecov-io
Copy link

codecov-io commented Jul 1, 2016

Current coverage is 86.67%

Merging #3374 into master will increase coverage by 34.43%

@@             master      #3374   diff @@
==========================================
  Files           335        335            
  Lines         57628      57644      +16   
  Methods           0          0            
  Messages          0          0            
  Branches       8721       8784      +63   
==========================================
+ Hits          30105      49961   +19856   
+ Misses        25694       5006   -20688   
- Partials       1829       2677     +848   

Sunburst

Powered by Codecov. Last updated by 1a641d7...0b25cb4

mne/bem.py Outdated
else:
raise RuntimeError('Only 1- or 3-layer BEM computations supported')
if bem['surfs'][0]['np'] > 10000:
warn('The bem surface has %s data points. 5120 should be enough.'
Copy link
Member

Choose a reason for hiding this comment

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

Should probably warn that it might not save properly, and to DRY it this can be a _check_bem_size private function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suppose that is only a problem with three layer bem. So maybe warn only then.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or maybe it saves to separate files, right? I'll check.

Copy link
Member

Choose a reason for hiding this comment

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

3-layer BEM gets saved to a single file, just like 1-layer BEM

mne/bem.py Outdated
if bem['surfs'][0]['np'] > 10000:
warn('The bem surface has %s data points. 5120 should be enough.'
% bem['surfs'][0]['np'])
_check_bem_size(bem)
Copy link
Member

Choose a reason for hiding this comment

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

to save users some pain, you could also put this warning in make_bem_model, the lighter-weight step they likely use before making the solution

@jaeilepp
Copy link
Contributor Author

jaeilepp commented Jul 4, 2016

Comments addressed.

@agramfort agramfort merged commit 420028b into mne-tools:master Jul 4, 2016
@agramfort
Copy link
Member

thx @jaeilepp

jona-sassenhagen added a commit to jona-sassenhagen/mne-python that referenced this pull request Jul 5, 2016
* 'master' of git://github.com/mne-tools/mne-python: (48 commits)
  FIX: Flake
  fix pep8
  [MRG] FIX Topographic plotting for KIT-UMD data (mne-tools#3349)
  QUICKFIX: logging test
  Error message for simulate evoked. (mne-tools#3372)
  Warnings for big bems. (mne-tools#3374)
  Add test for baseline correction.
  Use apply_baseline in read_evokeds.
  Makes (None, 0) the default value baseline in apply_baseline.
  [FIX] Adds apply_baseline to Evoked
  fix component inds in ica tutorial (mne-tools#3379)
  FIX: Xdawn with shuffled epochs (mne-tools#3373)
  FIX consistency:  Epochs.load_data() should always return self (mne-tools#3376)
  MRG: Build relevant examples (mne-tools#3365)
  [MRG] set vmin, vmax after smoothing in plot_epochs_image (mne-tools#3360)
  [FIX] Attempt to fix circle.
  fixing a bg plotting bug for topo plots
  Modified test and tutorial.
  [MRG] convert surface using python. (mne-tools#3273)
  [MRG] raw.plot_psd() with flat channel (mne-tools#3342)
  ...
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.

4 participants