Repository navigation
MRG: Unify around time_unit="s" - #5082
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5082 +/- ##
==========================================
+ Coverage 88.05% 88.06% +0.01%
==========================================
Files 356 356
Lines 65140 65556 +416
Branches 11105 11214 +109
==========================================
+ Hits 57358 57733 +375
- Misses 4958 4984 +26
- Partials 2824 2839 +15 |
|
Rebased |
|
if no warnings pop up in the examples or tutorials good to go from my end. |
|
if you do a
git grep evoked.plot
you will see that this shows up in many many places
|
|
Pushed a commit that should fix the ones found with |
|
Okay latest commit should finally clean up warnings on CircleCI. |
|
thx @larsoner |
|
Just noticed this. But now we have plots like this: https://martinos.org/mne/stable/auto_examples/decoding/plot_linear_model_patterns.html. The "time unit" has no meaning for filters and patterns ... |
|
Sure it does have a meaning? It's the filter that works/was found at a specific time point. We also have parts of the code where we just use the Evoked object to plot e.g. CSPs (time independent), but that's old. Or am I misreading your point? |
|
I don't get it either. The plots were identical in 0.15 (except for the time unit): https://mne-tools.github.io/0.15/auto_examples/decoding/plot_linear_model_patterns.html#sphx-glr-auto-examples-decoding-plot-linear-model-patterns-py |
yes this is what I was looking for. But never mind ... false alarm |
* FIX: Unify around time_unit="s" * FIX: Examples [circle full] * FIX: Doctest [circle full] * FIX: Bump timeout [circle full] * FIX: More examples [circle full] * FIX: More fixes [circle full]
Closes #3164.
This moves
evoked.plotandevoked.plot_topomaptoward usingtime_unit='s'as the default, consistent with all other MNE plotters. This means adding the param to both, deprecatingms->s, and also deprecating thescaling_timeparameter inevoked.plot_topomap.This will emit some warnings in examples and tests, I hope to fix most of them after inspecting CI output.
@jona-sassenhagen @mmagnuski @cbrnr agree this is a good plan?