params_complete¶
-
pyoof.
params_complete
(params, idx, N_K_coeff, config_params)[source] [edit on github]¶ This function fills the missing parameters not used in the lease squares minimization, they are required to compute the correct aperture distribution, \(\underline{E_\mathrm{a}}(x, y)\). By default the following parameters are excluded
i_amp
,x0
,y0
,K(0, 0)
. The parameter selection is done by default or by adding aconfig_params.yml
file to thefit_beam
function.Parameters: params :
ndarray
Contains the incomplete array of parameters, the
params
array will be updated for the correct number of parameters to be used in theresidual_true
function. The array should be of the shape,params = np.hstack([I_coeff, K_coeff])
, missing or not some of theidx = [0, 1, 2, 3, 4]
parameters.idx :
list
List of the positions for the removed parameters for the least squares minimization in the
params
array.N_K_coeff :
int
Total number of Zernike circle polynomials coefficients to fit. It is obtained from the order to be fitted with the formula
N_K_coeff = (n + 1) * (n + 2) // 2.
.config_params :
dict
Contains the values for the fixed parameters (excluded from the least squares minimization), by default four parameters are kept fixed,
i_amp
,x0
,y0
andK(0, 0)
. See theconfig_params.yml
file.Returns: params_updated :
ndarray
Complete set of parameters to be used in the
residual_true
function.