gwcs.wcs.NoConvergence¶
- class gwcs.wcs.NoConvergence(*args, best_solution=None, accuracy=None, niter=None, divergent=None, slow_conv=None)¶
Bases:
ExceptionAn error class used to report non-convergence and/or divergence of numerical methods. It is used to report errors in the iterative solution used by the
all_world2pix().- Variables:
best_solution (
numpy.ndarray) – Best solution achieved by the numerical method.accuracy (
numpy.ndarray) – Estimate of the accuracy of thebest_solution.niter (
int) – Number of iterations performed by the numerical method to computebest_solution.divergent (None,
numpy.ndarray) – Indices of the points inbest_solutionarray for which the solution appears to be divergent. If the solution does not diverge,divergentwill be set toNone.slow_conv (None,
numpy.ndarray) – Indices of the solutions inbest_solutionarray for which the solution failed to converge within the specified maximum number of iterations. If there are no non-converging solutions (i.e., if the required accuracy has been achieved for all input data points) thenslow_convwill be set toNone.