Skip to content

FR: Document units for TFR objects and adjust/track depending on baseline correction #8026

Open

Description

@sappelhoff

Came up in this gitter thread.

Describe the problem

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.

Activity

  1. added this to the 0.21 milestone on Jul 20, 2020
  2. bloyl commented on Jul 20, 2020

    @bloyl
    Contributor

    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.

  3. larsoner commented on Aug 20, 2020

    @larsoner
    Member

    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)

  4. modified the milestones: 0.21, 0.22 on Aug 31, 2020
  5. mmagnuski commented on Nov 11, 2020

    @mmagnuski
    Member

    A positive side effect of that would be to not allow additional apply_baseline calls once a tfr has been baseline corrected.

    Yes, that would be nice!

  6. modified the milestones: 0.22, 0.23 on Dec 16, 2020
  7. modified the milestones: 0.23, 0.24 on Apr 19, 2021
  8. self-assigned this
    on Oct 22, 2021
  9. modified the milestones: 0.24, 1.0 on Oct 22, 2021
  10. 3 remaining items

  11. added this to the 1.2 milestone on Jun 4, 2022
  12. modified the milestones: 1.2, 1.3 on Sep 13, 2022
  13. modified the milestones: 1.3, 1.4 on Dec 8, 2022
  14. modified the milestones: 1.4, 1.5 on Apr 21, 2023
  15. modified the milestones: 1.5, 1.6 on Jul 31, 2023
  16. modified the milestones: 1.6, 1.7 on Nov 7, 2023
  17. modified the milestones: 1.7, 1.8 on Apr 9, 2024
  18. larsoner commented on Jul 15, 2024

    @larsoner
    Member

    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!

  19. removed this from the 1.8 milestone on Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions