Closed larsoner closed 2 years ago
Merging #452 (dfb56f5) into main (a83acab) will increase coverage by
0.01%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## main #452 +/- ##
==========================================
+ Coverage 93.33% 93.34% +0.01%
==========================================
Files 65 65
Lines 2670 2675 +5
Branches 340 343 +3
==========================================
+ Hits 2492 2497 +5
Misses 120 120
Partials 58 58
Impacted Files | Coverage Δ | |
---|---|---|
mne_nirs/visualisation/_plot_3d_montage.py | 99.01% <100.00%> (+0.04%) |
:arrow_up: |
mne_nirs/visualisation/tests/test_visualisation.py | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update a83acab...dfb56f5. Read the comment docs.
I love it! I can see myself setting src_det_names=None
and then using a dict to map S2_D3 = "Planum Temporale" and S5_D2 = "Inferior Frontal Gyrus" etc.
Would this allow new line characters and/or setting S7_D3 = "", i.e. removing channel names for certain channels?
Removing definitely works. Newlines I'll have to check
Newlines I'll have to check
If not, no need to add it here, just make a new issue and we can tackle it later.
Newlines work -- I used src_det_names=defaultdict(lambda: 'a\nb')
:
So do you think the API should be as described at the top of the issue, or as it's implemented in the code?
So do you think the API should be as described at the top of the issue, or as it's implemented in the code?
I prefer as described at the top of the issue. I think that ch_names ="short"
is much more approachable to a new user than lambdas or dict(zip(str(ii), name.split()[0]) for ii, name in enumerate(raw.ch_names[::2], 1)))
Yes but shouldn't we teach them this beautiful one-liner :)
I'll push a fix tomorrow (EST)
Ready for review/merge from my end @rob-luke
Wonderful, thanks @larsoner
It's nice to be able to remap the
ch_names
that get plotted. I'm not convinced this is the best API. Maybe instead we should have:@rob-luke WDYT?