Skip to content

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

Merged
larsoner merged 15 commits intomne-tools:mainfrom
sappelhoff:enh/get_data/units_epochs
Jul 15, 2021
Merged

[MRG] Add units parameter to get_data for Epochs#9553
larsoner merged 15 commits intomne-tools:mainfrom
sappelhoff:enh/get_data/units_epochs

Conversation

@sappelhoff
Copy link
Copy Markdown
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 sappelhoff requested review from agramfort and larsoner July 13, 2021 10:03
@sappelhoff
Copy link
Copy Markdown
Member Author

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

@HanBnrd
Copy link
Copy Markdown
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 🙂

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
Copy Markdown
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
Copy Markdown
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!

sappelhoff and others added 2 commits July 15, 2021 17:01
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Copy link
Copy Markdown
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
Copy Markdown
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