Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip some doctests #212

Merged
merged 3 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tweakwcs/imalign.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion tweakwcs/linearfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down