You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FR: Document units for TFR objects and adjust/track depending on baseline correction #8026
The units for common TFR objects like AverageTFR are unclear.
Describe your solution
The units should be tracked ... and adjusted when a baseline correction is performed
Additional context
Other MNE functions track the units as well, and the colorbars or ylabels in plots are labelled with the units ... this is not the case for TFR objects yet.
you can get channel units from tfr.info['chs'] specifically the unit and unit_mul or each channel's dict.
So I think you just need to figure out how to keep tract of the modifications that baseline correction has performed. A positive side effect of that would be to not allow additional apply_baseline calls once a tfr has been baseline corrected.
Also we probably need to check to make sure our units are correct in all our TFR/PSD functions. It's possible that some normalization factors could be wrong if we use plain fft and don't account for the normalization (not sure if we do or not)
I'm going to remove the milestone from this rather than bumping it for a 13th (!) time, but it would be great if someone could tackle this at some point!
Activity
bloyl commentedon Jul 20, 2020
you can get channel units from
tfr.info['chs']specifically theunitandunit_mulor each channel'sdict.So I think you just need to figure out how to keep tract of the modifications that baseline correction has performed. A positive side effect of that would be to not allow additional
apply_baselinecalls once a tfr has been baseline corrected.larsoner commentedon Aug 20, 2020
Also we probably need to check to make sure our units are correct in all our TFR/PSD functions. It's possible that some normalization factors could be wrong if we use plain
fftand don't account for the normalization (not sure if we do or not)mmagnuski commentedon Nov 11, 2020
Yes, that would be nice!
3 remaining items
larsoner commentedon Jul 15, 2024
I'm going to remove the milestone from this rather than bumping it for a 13th (!) time, but it would be great if someone could tackle this at some point!