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.
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
RingOptionsis 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 waspotential well has no minimathrown bymatched_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.