Skip to content

emd.py divide by zero & other uncaught exceptions #48

@johndavidmiller

Description

@johndavidmiller

in stop_sifting() the line: "sx = np.abs(envmoy) / amp" sometimes causes a divide by zero error.

also, I notice that right above this line (currently 376) there are some try/except checks for the return values of self.mean_and_amplitude(), but ONLY for two very specific errors. seems there should be an unconditional "except" too.

what's the right fix here?

-- jdm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions