params_complete

pyoof.params_complete(params, N_K_coeff, config_params)[source]

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)\). The parameter selection is done by default or by adding a config_params.yml file to the fit_zpoly function.

Parameters
paramsndarray

Contains the incomplete array of parameters, the params array will be updated for the correct number of parameters to be used in the residual_true function. The array should be of the shape, params = np.hstack([I_coeff, K_coeff]), missing or not some of the idx_exclude = [0, 1, 2, 3, 4, 5, 6, 7] parameters.

N_K_coeffint

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_paramsdict

Contains the values for the fixed parameters (excluded from the least squares minimization), for default parameters, see the config_params.yml file.

Returns
params_updatedndarray

Complete set of parameters to be used in the residual_true function.