Skip to content
Snippets Groups Projects
Commit 20bae273 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

[sphinx] Fixed doc test

parent 8a41eaaa
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -41,8 +41,8 @@ example: ...@@ -41,8 +41,8 @@ example:
:options: +NORMALIZE_WHITESPACE :options: +NORMALIZE_WHITESPACE
>>> x = numpy.array([0, 10, 20, 30, 40], 'uint8') >>> x = numpy.array([0, 10, 20, 30, 40], 'uint8')
>>> bob.core.convert(x, 'float64', source_range=(0,40), dest_range=(0.,1.)) >>> numpy.allclose(bob.core.convert(x, 'float64', source_range=(0,40), dest_range=(0.,1.)),numpy. array([ 0. , 0.25, 0.5 , 0.75, 1. ]))
array([ 0. , 0.25, 0.5 , 0.75, 1. ]) True
Any range not specified is assumed to default on the type range. Any range not specified is assumed to default on the type range.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment