Skip to content

Commit e4db69b

Browse files
committed
Fix various broken doctests.
1 parent 228252d commit e4db69b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

colour_checker_detection/detection/segmentation.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,15 @@ def swatch_masks(width, height, swatches_h, swatches_v, samples):
155155
Examples
156156
--------
157157
>>> from pprint import pprint
158-
>>> pprint(swatch_masks(16, 8, 4, 2, 1))
159-
[array([2, 2, 2, 2]),
160-
array([2, 2, 6, 6]),
161-
array([ 2, 2, 10, 10]),
162-
array([ 2, 2, 14, 14]),
163-
array([6, 6, 2, 2]),
164-
array([6, 6, 6, 6]),
165-
array([ 6, 6, 10, 10]),
166-
array([ 6, 6, 14, 14])]
158+
>>> pprint(swatch_masks(16, 8, 4, 2, 1)) # doctest: +ELLIPSIS
159+
[array([2, 2, 2, 2]...),
160+
array([2, 2, 6, 6]...),
161+
array([ 2, 2, 10, 10]...),
162+
array([ 2, 2, 14, 14]...),
163+
array([6, 6, 2, 2]...),
164+
array([6, 6, 6, 6]...),
165+
array([ 6, 6, 10, 10]...),
166+
array([ 6, 6, 14, 14]...)]
167167
"""
168168

169169
samples = as_int(samples / 2)
@@ -520,11 +520,11 @@ def colour_checkers_coordinates_segmentation(image, additional_data=False):
520520
... 'colour_checker_detection', 'detection',
521521
... 'IMG_1967.png')
522522
>>> image = read_image(path)
523-
>>> colour_checkers_coordinates_segmentation(image)
523+
>>> colour_checkers_coordinates_segmentation(image) # doctest: +ELLIPSIS
524524
[array([[1065, 707],
525525
[ 369, 688],
526526
[ 382, 226],
527-
[1078, 246]])]
527+
[1078, 246]]...)]
528528
"""
529529

530530
image = as_8_bit_BGR_image(adjust_image(image, WORKING_WIDTH))

0 commit comments

Comments
 (0)