Skip to content

Zapline: retain copy of input in case no artifact present #93

@Randomidous

Description

@Randomidous

If the average residual power at the line frequency after polynomial fitting (mean_score) is negative on the first iteration, the function will return data that has already been modified by dss_line(), even though the stopping criterion suggests the artifact wasn't actually present or the denoising made things worse.

I suggest retaining a copy of the input, which is returned if the mean_score is negative on iteration 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions