Skip to content

Commit

Permalink
Skip ransac doctest (#6953)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed May 23, 2023
1 parent f2745cf commit b44c412
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions skimage/measure/fit.py
Expand Up @@ -828,9 +828,13 @@ def ransac(data, model_class, min_samples, residual_threshold,
>>> dst[2] = (50, 50)
>>> ratio = 0.5 # use half of the samples
>>> min_samples = int(ratio * len(src))
>>> model, inliers = ransac((src, dst), SimilarityTransform, min_samples,
... 10,
... initial_inliers=np.ones(len(src), dtype=bool))
>>> model, inliers = ransac(
... (src, dst),
... SimilarityTransform,
... min_samples,
... 10,
... initial_inliers=np.ones(len(src), dtype=bool),
... ) # doctest: +SKIP
>>> inliers # doctest: +SKIP
array([False, False, False, True, True, True, True, True, True,
True, True, True, True, True, True, True, True, True,
Expand Down

0 comments on commit b44c412

Please sign in to comment.