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 a config_params.yml file to the fit_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 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 = [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 and K(0, 0). See the config_params.yml file.

Returns:

params_updated : ndarray

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