Skip to content

Conversation

@drammock
Copy link
Member

crossref #7206 (especially this comment)

The goal is to change default from 'ms' to None. In this PR I'm only changing docstring, not raising a warning if the current default is passed. I suppose I could change the default to None and have None temporarily mean 'ms', and add temporarily a valid argument 's' to get the behavior currently intended by None, and raise a warning if the value is None rather than 's' or 'ms'? But at least some people have learned that explicitly passing None is what they should do (e.g., #8044) so IMO raising a warning in that way would cause more confusion than it might avert.

@agramfort
Copy link
Member

agramfort commented Sep 23, 2020 via email

@drammock drammock changed the title API: prep for to_data_frame default argument change MRG, API: prep for to_data_frame default argument change Sep 23, 2020
@drammock
Copy link
Member Author

MRG?

Yes, sorry, forgot to add that.

Copy link
Member

@agramfort agramfort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@larsoner merge if happy

@dengemann
Copy link
Member

@drammock any phantasy how that might interact downstream with R stuff?

@drammock
Copy link
Member Author

@drammock any phantasy how that might interact downstream with R stuff?

some MNE-R tests will definitely start failing once the default changes, which won't happen in MNE-Python stable for ~1 year. Hopefully before then one of us will take a fresh look at MNE-R and its test suite... the update to R 4.0 changed the stringsAsFactors default, which probably already breaks some tests.

@dengemann
Copy link
Member

Ok sounds good! I want to defnitely spend a few days on this before the end of the year. I'll ping you once I have an idea when that could be. Perhaps we can coordinate a bit.

@larsoner larsoner merged commit 14bbb04 into mne-tools:master Sep 24, 2020
@larsoner
Copy link
Member

Thanks @drammock

@drammock drammock deleted the to-dataframe-defaults branch October 13, 2020 16:20
marsipu pushed a commit to marsipu/mne-python that referenced this pull request Oct 14, 2020
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.

4 participants