Skip to content

Question on severity of a runtime warning #23

@hamsamilton

Description

@hamsamilton

Hi,

When running dynamics analyses I frequently receive the following warning

/Users/samhamilton/miniconda3/envs/pwspyenv/lib/python3.11/site-packages/pwspy/analysis/dynamics.py:140: RuntimeWarning: invalid value encountered in log
val = np.log(ac) / (4 * k ** 2) # See the theory section of the paper for an explanation of the 4k^2. The slope of log(ac) should be equivalent to 1/t_c in the paper.

Does this invalidate the results? What are solutions to this issue?

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