pyuvdata
pyuvdata copied to clipboard
Spline Bug in Interpolation Function
It appears that .interp() function will not adjust to changes made in spline_opts if resuse_spline=True. In order for spline_opts to work, it needs reuse_spline=False, which is not ideal. This should be fixed so that the parameter will reuse the spline unless there are changes made to the spline options.
Thank you!
@nfcarl Which version of pyuvdata are you seeing this?
The most recent version.
To clarify, the main issue is that it should detect a change in spline_opts and perhaps provide an error message, rather than just running the program. If we have reuse_spline=True, then we probably want it to tell you if you are trying to change the spline_opts it won't use the new options.
This isn't intrinsically a bug, if the reuse_spline keyword is set, it should reuse the old spline. But the docstrings should be clarified to say that spline_opts is ignored if reuse_spline is True.