Skip to content
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

[MRG] Add units parameter to get_data for Epochs #9553

Merged
merged 15 commits into from Jul 15, 2021

Conversation

sappelhoff
Copy link
Member

@sappelhoff sappelhoff commented Jul 12, 2021

closes #8473

Follow up to #9136

Adds the units parameter to the get_data method of Epochs.

Work in Progress

To do

  • refactor units in Raw
  • add units to Epochs
  • add tests for Epochs
  • pull units docs into docdict
  • document all params
  • add whatsnew entry

@sappelhoff sappelhoff added the ENH label Jul 12, 2021
@sappelhoff sappelhoff changed the title [WIP] Add units parameter to get_data for Epochs [MRG] Add units parameter to get_data for Epochs Jul 12, 2021
@sappelhoff sappelhoff mentioned this pull request Jul 12, 2021
2 tasks
@sappelhoff
Copy link
Member Author

@HanBnrd perhaps you want to review this PR, as it builds on the stuff you coded during the last sprint :-)

mne/epochs.py Outdated Show resolved Hide resolved
mne/epochs.py Outdated Show resolved Hide resolved
mne/epochs.py Outdated Show resolved Hide resolved
mne/epochs.py Show resolved Hide resolved
@HanBnrd
Copy link
Contributor

HanBnrd commented Jul 13, 2021

@HanBnrd perhaps you want to review this PR, as it builds on the stuff you coded during the last sprint :-)

Thanks for implementing this @sappelhoff! Just went through the code, looks good to me 🙂

mne/epochs.py Outdated Show resolved Hide resolved
mne/epochs.py Outdated Show resolved Hide resolved
mne/epochs.py Show resolved Hide resolved
sappelhoff and others added 5 commits July 15, 2021 15:53
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
…-python into enh/get_data/units_epochs

Co-authored-by: Johann Benerradi <johann.benerradi@gmail.com>
Copy link
Member Author

@sappelhoff sappelhoff left a comment

Choose a reason for hiding this comment

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

Thanks for the review @larsoner @HanBnrd I addressed your points and the PR is ready for more feedback or for merging.

Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

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

Other than a couple of minor simplification ideas, LGTM!

doc/changes/latest.inc Outdated Show resolved Hide resolved
mne/epochs.py Outdated Show resolved Hide resolved
mne/epochs.py Outdated Show resolved Hide resolved
sappelhoff and others added 2 commits July 15, 2021 17:01
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Copy link
Contributor

@HanBnrd HanBnrd left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@larsoner larsoner merged commit 19bdd79 into mne-tools:main Jul 15, 2021
@larsoner
Copy link
Member

Thanks @sappelhoff !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FR: Add "unit" parameter to get_data method for Epochs
3 participants