-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
MRG, FIX, ENH: overhaul to_data_frame method #7206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## master #7206 +/- ##
==========================================
+ Coverage 89.74% 90.17% +0.42%
==========================================
Files 447 450 +3
Lines 80716 82211 +1495
Branches 12876 13696 +820
==========================================
+ Hits 72442 74137 +1695
+ Misses 5441 5276 -165
+ Partials 2833 2798 -35 |
|
@larsoner I think this is ready for review. TLDR:
More details:
|
|
Your described current approach sounds good to me, will look in depth tomorrow |
This comment has been minimized.
This comment has been minimized.
|
Sounds good, l’ll take a look asap and check out how this interacts with R.
… On 4 Feb 2020, at 02:55, Daniel McCloy ***@***.***> wrote:
The Azure failures are puzzling me; these all pass locally, and Travis is happy:
pytest mne/tests/test_epochs.py -k test_to_data_frame
pytest mne/tests/test_evoked.py -k test_to_data_frame
pytest mne/tests/test_source_estimate.py -k test_to_data_frame
pytest mne/io/fiff/tests/test_raw_fiff.py -k test_to_data_frame
pytest mne/io/edf/tests/test_edf.py -k test_to_data_frame
Looks like it's an error with isinstance testing against np.int64. Locally it was failing when I tested against plain int which is why I switched the test to int64... is there a better way to do this kind of type checking?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
This comment has been minimized.
This comment has been minimized.
430a066 to
de7b528
Compare
|
Rebased to fix a doc building issue that was fixed elsewhere. @dengemann do you still have time to review this? There's a tutorial PR #7180 that is waiting for it. @jona-sassenhagen @choldgraf any interest in weighing in? |
|
Tests pass on MNE-R and examples build. But as we just discovered, the time_format options can cause trouble and hit untested territory.
Let’s do an issue in mne-r and in case of doubt break things to move on here. We’ll then patch it up over there.
Denis
… On Feb 11, 2020, at 12:20 AM, Daniel McCloy ***@***.***> wrote:
Rebased to fix a doc building issue that was fixed elsewhere. @dengemann do you still have time to review this? There's a tutorial PR #7180 that is waiting for it.
@jona-sassenhagen @choldgraf any interest in weighing in?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
Summarizing an offline conversation with @dengemann: this PR doesn't break MNE-R, but the rewritten to_data_frame methods don't work cleanly, and some options are causing segfaults. We'll investigate for a day or two to see how hard it will be to fix it. |
|
Too fast, I had a path issue and did not actually run your code …
On MNE master MNE-R is fine, on this branch it produces 1failing test.
Can you reproduce?
… On Feb 11, 2020, at 12:59 AM, Daniel McCloy ***@***.***> wrote:
Summarizing an offline conversation with @dengemann: this PR doesn't break MNE-R, but the rewritten to_data_frame methods don't work cleanly, and some options are causing segfaults. We'll investigate for a day or two to see how hard it will be to fix it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
@drammock it looks very clean to me. Thank you for this very nice work and the testing against mne-r ! I'd say let's move on. |
|
@drammock this appears to have broken three examples: https://circleci.com/gh/mne-tools/mne-python/17989 Can you look into it? |
|
Will do. |
closes #7179
_check_pandas_index_argumentsto_data_frame()docstring re: tuples vs listsindex=Nonework as describedlong_format=Truecc @jona-sassenhagen @dengemann @choldgraf @larsoner @agramfort