Autophasing broken when fieldmap starts at z < 0
When a Astra1DDynamic fieldmap is used which starts at z < 0 then the interpolation algorithm throws an exception because a sampling point outside of the range was requested.
Steps to reproduce
Run this input file: (file follows)
What is the current bug behavior?
The interpolation algorithm in the field map reader Astra1DDynamic_fast throws an exception because a sampling point outside of the range was requested.
What is the expected correct behavior?
The autophasing algorithm should run smoothly and yield the same results as before #515 (closed) was implemented.
Relevant logs and/or screenshots