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
When using the plot() method on an AverageTFR object with the dB argument set to True, the dB normalization applied is 20*log10(data) instead of 10*log10(data) (which is what is specified in the documentation).
If I'm not mistaken, 20*log10(data) dB normalization is for amplitude data, not power data. I spotted this problem with this function, but it probably applies to other functions where the dB argument can be specified.
I took a quick look, it appears that we need to keep track of whether data was complex so we can conditionally change the coef from 10 to 20 only in that case. @Martin2Constant are you up for making a PR to fix this?
Activity
welcome commentedon Aug 25, 2022
Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴🏽♂️
drammock commentedon Aug 25, 2022
I took a quick look, it appears that we need to keep track of whether data was complex so we can conditionally change the coef from
10to20only in that case. @Martin2Constant are you up for making a PR to fix this?