Skip to content

Input sanity check #181

@scpalbright

Description

@scpalbright

A minor thing to consider for the future. I've had a few issues recently where I've had invalid input values it has always been at some unexpected place it gets caught.

E.g. if RingOptions is set to have "derivative" interpolation and the momentum is constant the all the parameters end up as NaN, and the error that I ended up with was potential well has no minima thrown by matched_from_distribution_function.

I've had similar issues when my calculated voltage or phase have gone wrong and included a NaN as well. Some basic sanity checking at object declaration might be worth while.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions