diff --git a/tweakwcs/imalign.py b/tweakwcs/imalign.py index 6394168..49372c8 100644 --- a/tweakwcs/imalign.py +++ b/tweakwcs/imalign.py @@ -336,8 +336,8 @@ def align_wcs(wcscat, refcat=None, ref_tpwcs=None, enforce_user_order=True, valid. Therefore, it is advisable verify that status is ``'SUCCESS'`` before attempting to access other items, for example: - >>> fit_info = wcscat[0].meta.get('fit_info') # noqa - >>> if fit_info['status'] == 'SUCCESS': + >>> fit_info = wcscat[0].meta.get('fit_info') # noqa # doctest: +SKIP + >>> if fit_info['status'] == 'SUCCESS': # doctest: +SKIP ... print("shifts: [{}, {}]".format(*fit_info['shift'])) ... else: ... print("tweak info not available for this image") diff --git a/tweakwcs/linearfit.py b/tweakwcs/linearfit.py index 3b95e97..bb1eb8a 100644 --- a/tweakwcs/linearfit.py +++ b/tweakwcs/linearfit.py @@ -852,7 +852,7 @@ def build_fit_matrix(rot, scale=1): class _LevMarLSQFitter2x2(LMLSQFitter): """ Performs fits of 2D vector-models to 2D reference points. """ - def objective_function(self, fps, *args): + def objective_function(self, fps, *args, **kwargs): model, weights, inputs, meas, *_ = args fitter_to_model_params(model, fps) if weights is None: