Skip to content

Public spectrum summary and line-noise magnitude helpers #536

Closed

Description

@neuromechanist

A pipeline wants a per-recording quality summary: the power spectrum on 1 Hz bins from 1 to 70 Hz, the excess power at
50 and 60 Hz over the neighbouring bins in dB (the quantity EEGLAB users compute from spectopo), and a robust
(MAD-based) amplitude per channel.
The Welch estimator it needs exists (eegprep.functions.sigprocfunc.spectopo.compute_spectra) but is not exported,
imports matplotlib at import time, and is documented as a plotting helper.

Expected: documented public functions with stable import paths, no plotting dependency, for example
spectrum_db(EEG, ...) -> (spectra_db, freqs), line_noise_excess_db(EEG, freqs=(50, 60), neighbours=...) and
channel_robust_amplitude(EEG). Pure functions of the dataset; no mutation.

Checked on eegprep 0.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions