Skip to content

[MRG] Fixing serialization of SleepPhysionet #327

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

Merged
merged 2 commits into from
Sep 9, 2021

Conversation

hubertjb
Copy link
Collaborator

@hubertjb hubertjb commented Sep 6, 2021

This PR fixes two minor bugs with the SleepPhysionet class that I came across with while running some tests for #325. First, the exclude attribute of the Raw object was a dict_keys object, which prevented the dataset from being serialized. Second, channels were renamed using mne.rename_channels instead of using Raw's rename_channels method, which led to .ch_names and ._orig_units having different channel names. This created an issue when applying the filterbank preprocessor.

…etween ch_names and _orig_units

- adding tests
@hubertjb hubertjb requested a review from robintibor September 6, 2021 02:25
@codecov
Copy link

codecov bot commented Sep 6, 2021

Codecov Report

Merging #327 (9d495da) into master (8beb041) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #327   +/-   ##
=======================================
  Coverage   80.51%   80.51%           
=======================================
  Files          49       49           
  Lines        3171     3171           
=======================================
  Hits         2553     2553           
  Misses        618      618           

@hubertjb hubertjb changed the title [WIP] Fixing serialization of SleepPhysionet [MRG] Fixing serialization of SleepPhysionet Sep 6, 2021
@robintibor
Copy link
Contributor

great

@robintibor robintibor merged commit dabe2b2 into braindecode:master Sep 9, 2021
@hubertjb hubertjb deleted the sleep-physionet-fix branch September 9, 2021 18:56
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.

2 participants