Skip to content

ENH: Add better singularity warnings. #83

@jcapriot

Description

@jcapriot

We should have a bit better handling of singular points in the analytic solutions.
At the very least:

  • Create a SingularWarning class issued if any of the functions try to evaluate at known singular points. (i.e. when evaluating points directly at source locations.) We should also include in the message, where this happened if possible.

Inside the functions we should probably:

  1. Temporarily replace the singular points with something that won't be singular
  2. Then before returning, insert $\pm\infty$ back into those singular points if those points are infinite, or nan if that isn't the case.

I don't think filling them with zeros is a good practice, but issuing better warnings will be greatly helpful.

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