Skip to content

ENH(mne.Report): add section parameters to .add_raw, .add_epochs and .add_evoked #13801

@raj-magesh

Description

@raj-magesh

Describe the new feature or enhancement

Hi! Thanks for the amazing work on MNE-Python :)

I'm wondering if there's any reason the .add_raw, .add_epochs and .add_evoked methods of mne.Report don't support the section parameter supported by many other methods in the same class.

If there's no design reason why this option is omitted, would you accept a PR to add this parameter in all these places?

Thanks!

Describe your proposed implementation

Add the section parameter to the .add_raw, .add_epochs and .add_evoked methods of mne.Report (and potentially others that lack it?)

Describe possible alternatives

This would be a useful change because I want to group my report sections by run, and right now it's not possible (let me know if there's a workaround though!)

I guess the alternative is leaving the current methods as they are, but I'm not sure if there's any principled reason why they shouldn't be grouped into sections.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions