From af1bdcad5e8638ba9aa8b381aaabd5fc9cc5ae4e Mon Sep 17 00:00:00 2001 From: MathieuCarriere Date: Wed, 2 Mar 2022 15:31:36 +0100 Subject: fix sphinx test for rips --- src/python/doc/rips_complex_tflow_itf_ref.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/python') diff --git a/src/python/doc/rips_complex_tflow_itf_ref.rst b/src/python/doc/rips_complex_tflow_itf_ref.rst index 83421b2a..6974f92d 100644 --- a/src/python/doc/rips_complex_tflow_itf_ref.rst +++ b/src/python/doc/rips_complex_tflow_itf_ref.rst @@ -11,7 +11,6 @@ Example of gradient computed from Vietoris-Rips persistence ----------------------------------------------------------- .. testsetup:: - :hide: import numpy numpy.set_printoptions(precision=4) @@ -30,6 +29,9 @@ Example of gradient computed from Vietoris-Rips persistence grads = tape.gradient(loss, [X]) print(grads[0].numpy()) +.. testcleanup:: + numpy.set_printoptions(precision=8) + .. testoutput:: [[-0.5 -0.5] -- cgit v1.2.3