Skip to content

Timbral_Warmth.py:217: RuntimeWarning: divide by zero encountered in log10 #12

@olivecha

Description

@olivecha

The error occurs when there is a zero in the array :

spec[WR_upper_f_limit_idx:]

a working fix is replacing the line 217 with :

 above_WR_spec = [value if value == 0 else np.log10(value) for value in spec[WR_upper_f_limit_idx:]]

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