Skip to content

Commit

Permalink
MRG: Convert CTF STL (mne-tools#5462)
Browse files Browse the repository at this point in the history
* ENH: Convert CTF STL

* DOC: Better comment [ci skip]

* DOC: whats_new.rst [ci skip]

* FIX: Fix count
  • Loading branch information
larsoner authored and agramfort committed Oct 11, 2018
1 parent 3496365 commit 8cc1068
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions doc/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Changelog

- Add :func:`mne.head_to_mri` to convert positions from head coordinates to MRI RAS coordinates, by `Joan Massich`_ and `Alex Gramfort`_

- Add improved CTF helmet for :func:`mne.viz.plot_alignment` by `Eric Larson`_

- :func:`mne.combine_evoked` and :func:`mne.grand_average` can now handle input with the same channels in different orders, if required, by `Jona Sassenhagen`_

- Add `split_naming` parameter to the `Raw.save` method to allow for BIDS-compatible raw file name construction by `Teon Brooks`_
Expand Down
2 changes: 1 addition & 1 deletion examples/visualization/plot_meg_sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plotting sensor layouts of MEG systems
======================================
In this example, sensor layouts of different MEG systems are shown.
Sensor layouts of different MEG systems are shown.
"""
# Author: Eric Larson <[email protected]>
#
Expand Down
Binary file modified mne/data/helmets/CTF_275.fif.gz
Binary file not shown.
7 changes: 5 additions & 2 deletions mne/tests/test_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ def test_helmet():
fname_trans = op.join(base_dir, 'tests', 'data',
'sample-audvis-raw-trans.txt')
trans = _get_trans(fname_trans)[0]
for fname in [fname_raw, fname_kit_raw, fname_bti_raw, fname_ctf_raw]:
for fname, n in [(fname_raw, 304),
(fname_kit_raw, 304),
(fname_bti_raw, 304),
(fname_ctf_raw, 348)]:
helmet = get_meg_helmet_surf(read_info(fname), trans)
assert_equal(len(helmet['rr']), 304) # they all have 304 verts
assert_equal(len(helmet['rr']), n)
assert_equal(len(helmet['rr']), len(helmet['nn']))


Expand Down

0 comments on commit 8cc1068

Please sign in to comment.