change interpolation algorithm to interp1d from spline method.
Add default energy for storage ring magnet.