Modest improvement in the initialization of the positioner fit by fitting first circles for all unique values of POS_P (with at least 3 points) to get a first estimate of OFFSET_X and OFFSET_Y independently of any other calibration parameter. The changes are in posparams/fitter.py. Also add in fithandler.py the catch of a ValueError exception thrown by the circle fit when it fails. One may want to change this handling of errors.
New function robust_fit_circle that discards outliers and starts with medians.
Add minor options to scripts get_posmov_calib plot_positioner plot_posmove.
posparams/fitter.py
. Also add infithandler.py
the catch of a ValueError exception thrown by the circle fit when it fails. One may want to change this handling of errors.robust_fit_circle
that discards outliers and starts with medians.