MRG: Add units parameter to get_data for Raw#9136
MRG: Add units parameter to get_data for Raw#9136hoechenberger merged 34 commits intomne-tools:mainfrom
units parameter to get_data for Raw#9136Conversation
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
|
Hi @sappelhoff @larsoner, I ended up with an implementation in base.py, does this look good to you? |
|
I would do it in a new |
units parameter to get_dataunits parameter to get_data
units parameter to get_dataunits parameter to get_data for Raw
sappelhoff
left a comment
There was a problem hiding this comment.
some minor comments, but provided that the CIs pass, I am +1 for merging. Thanks a lot @HanBnrd
Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
hoechenberger
left a comment
There was a problem hiding this comment.
Few nitpicks, otherwise LGTM
Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com>
|
no but it should be tested as it's advertised as supported :)
… |
Heh. Neat :) 😁 |
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
|
Does it make sense to refactor |
|
(also our CIs are failing on all PRs due to a matplotlib issue so feel free to ignore the raw plotting errors) |
larsoner
left a comment
There was a problem hiding this comment.
LGTM +1 for merge assuming CIs are happy (aside from matplotlib failures)!
@larsoner, I deleted a good chuck of it as most of the tests were already done in _get_scaling |
Should I merge main again once the CI is fixed? |
|
In theory you shouldn't need to, if we just restart the CIs at that point they should get the fix because they build a merged-with-main version of the PR. But you could also merge with |
|
Thank you, @HanBnrd!! |
Reference issue
Partially addresses #8473:
unitsto Raw.get_dataAddunitsto Epochs.get_dataWhat does this implement/fix?
Adds a
unitsparameter to theget_data()function ofbase.py.With
unitsbeing eitherNone,strordict.Additional information
Continuation of #8476.