MRG+1, ENH: Allow creating DigMontage for standard montages#6714
MRG+1, ENH: Allow creating DigMontage for standard montages#6714massich merged 46 commits intomne-tools:masterfrom
Conversation
|
This pull request introduces 2 alerts when merging f9e1c2a into 3e60a9a - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #6714 +/- ##
==========================================
- Coverage 89.59% 89.47% -0.12%
==========================================
Files 419 421 +2
Lines 75892 75987 +95
Branches 12430 12444 +14
==========================================
- Hits 67994 67992 -2
- Misses 5102 5176 +74
- Partials 2796 2819 +23 |
|
This pull request introduces 2 alerts when merging 525ae9d into 751347d - view on LGTM.com new alerts:
|
525ae9d to
dc938e6
Compare
|
This pull request introduces 2 alerts when merging dc938e6 into 751347d - view on LGTM.com new alerts:
|
dc938e6 to
59c703c
Compare
|
This pull request introduces 5 alerts when merging 59c703c into 17fe113 - view on LGTM.com new alerts:
|
|
This pull request introduces 5 alerts when merging 36b184d into 80471f1 - view on LGTM.com new alerts:
|
|
This pull request introduces 3 alerts when merging 20d1c6f into 80471f1 - view on LGTM.com new alerts:
|
e7980ab to
2a873ec
Compare
|
This pull request introduces 3 alerts when merging 2a873ec into 80471f1 - view on LGTM.com new alerts:
|
|
This pull request introduces 3 alerts when merging 6d14613 into dbed4f6 - view on LGTM.com new alerts:
|
|
This pull request introduces 4 alerts when merging e858120 into dbed4f6 - view on LGTM.com new alerts:
|
|
I think that I like |
|
+1 for make_standard_montage as it's not indeed a read function as it does
not take a fname as input
… |
|
This pull request introduces 1 alert when merging 938fe3e into 13c8e69 - view on LGTM.com new alerts:
|
|
This is the rendered example in the current stage. Only montages without fiducials should be rendered properly. But this is not the case. standards and mghs do render properly which means that those points are already in Fixing all this. |
|
This pull request introduces 1 alert when merging 0024040 into 13c8e69 - view on LGTM.com new alerts:
|
|
There is something really funky that I don't understand. Even for something that is |
|
This pull request introduces 1 alert when merging 1e41d1c into 13c8e69 - view on LGTM.com new alerts:
|
|
This pull request introduces 4 alerts when merging bbb7c08 into e16d112 - view on LGTM.com new alerts:
|
|
This pull request fixes 3 alerts when merging 3cd7ca0 into 8cc11b5 - view on LGTM.com fixed alerts:
|
|
let's see if I can clear my thoughts, Despite the fact that for kind in [
'GSN-HydroCel-128',
'biosemi128',
'mgh60',
'standard_1005',
]:
montage = make_standard_montage(kind)
trf_montage = transform_to_head(montage)
_plot_dig_transformation(trf_montage, montage, title=kind) |
|
This pull request introduces 1 alert and fixes 3 when merging 0252dd3 into 8cc11b5 - view on LGTM.com new alerts:
fixed alerts:
|
|
This pull request introduces 1 alert and fixes 3 when merging 31405e8 into 8cc11b5 - view on LGTM.com new alerts:
fixed alerts:
|
|
This pull request introduces 1 alert when merging c71ebf3 into 8cc11b5 - view on LGTM.com new alerts:
|
7ee8c7a to
52ad108
Compare
|
This pull request introduces 1 alert when merging 52ad108 into 812f8c4 - view on LGTM.com new alerts:
|
mne/channels/tests/test_montage.py
Outdated
| if ch['ch_name'].startswith('EEG')]) | ||
| raw.set_montage('mgh60') # test loading with string argument | ||
| with pytest.deprecated_call(): | ||
| raw.set_montage('mgh60') # test loading with string argument |
There was a problem hiding this comment.
this should still work but via the DigMontage route
d0c3c8e to
4a4a12f
Compare
|
Here is the rendered version of the example. Maybe we want to add couple words of why the points look a bit off some times. But this can be done later. |
|
@agramfort suggested IRL to merge this one. There #6764 #6765 should follow this one, and maybe allow to register the standard montages. |
…s#6714) Adds `make_standard_montage(kind: str) -> DigMontage`; note: `'kind'` has to be valid builtin standard montage and `DigMontage` is in `'head'`




This works on #6461, It finds a way to create DigMontages from standard montage kind.
This could either be a new
read_standard_montageor reuseread_montage.