Skip to content

MRG: Unify around time_unit="s" - #5082

Merged
agramfort merged 6 commits into
mne-tools:masterfrom
larsoner:sec
Apr 8, 2018
Merged

agramfort merged 6 commits into
mne-tools:masterfrom
larsoner:sec

Conversation

@larsoner

@larsoner larsoner commented Apr 3, 2018

Copy link
Copy Markdown
Member

Closes #3164.

This moves evoked.plot and evoked.plot_topomap toward using time_unit='s' as the default, consistent with all other MNE plotters. This means adding the param to both, deprecating ms->s, and also deprecating the scaling_time parameter in evoked.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?

@codecov

codecov Bot commented Apr 3, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #5082 into master will increase coverage by 0.01%.
The diff coverage is 91.34%.

@@            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

@larsoner larsoner mentioned this pull request Apr 3, 2018
@larsoner larsoner added this to the 0.16 milestone Apr 4, 2018
@larsoner larsoner changed the title FIX: Unify around time_unit="s" MRG: Unify around time_unit="s" Apr 4, 2018
@larsoner

larsoner commented Apr 5, 2018

Copy link
Copy Markdown
Member Author

Rebased

@agramfort

Copy link
Copy Markdown
Member

if no warnings pop up in the examples or tutorials good to go from my end.

@jona-sassenhagen

Copy link
Copy Markdown
Contributor

@agramfort

agramfort commented Apr 6, 2018 via email

Copy link
Copy Markdown
Member

@larsoner

larsoner commented Apr 6, 2018

Copy link
Copy Markdown
Member Author

Pushed a commit that should fix the ones found with git grep "evoked.*\.plot(", with [circle full] so I can inspect the output for other warnings. I'll fix those, push another commit, and merge

@larsoner

larsoner commented Apr 6, 2018

Copy link
Copy Markdown
Member Author

Okay latest commit should finally clean up warnings on CircleCI.

@agramfort
agramfort merged commit a2dd739 into mne-tools:master Apr 8, 2018
@agramfort

Copy link
Copy Markdown
Member

thx @larsoner

@jasmainak

Copy link
Copy Markdown
Member

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 ...

@jona-sassenhagen

Copy link
Copy Markdown
Contributor

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?

@cbrnr

cbrnr commented May 9, 2018

Copy link
Copy Markdown
Contributor

@jasmainak

Copy link
Copy Markdown
Member

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.

yes this is what I was looking for. But never mind ... false alarm

britta-wstnr pushed a commit to britta-wstnr/mne-python that referenced this pull request Jul 5, 2018
* 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]
@larsoner
larsoner deleted the sec branch April 2, 2020 18:25
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.

Is there any pattern behind when times are in ms or in s?

5 participants