From 620e23bef5e209d2596d1d99a7284fda77f420c0 Mon Sep 17 00:00:00 2001 From: ROUVREAU Vincent Date: Thu, 22 Apr 2021 12:15:35 +0200 Subject: On azure, got 'expected nothing, got ...' error. Let's try another approach --- src/python/doc/alpha_complex_user.rst | 55 +++++++++++++++++------------------ 1 file changed, 26 insertions(+), 29 deletions(-) (limited to 'src/python/doc/alpha_complex_user.rst') diff --git a/src/python/doc/alpha_complex_user.rst b/src/python/doc/alpha_complex_user.rst index 1c2fb8e7..d15af56a 100644 --- a/src/python/doc/alpha_complex_user.rst +++ b/src/python/doc/alpha_complex_user.rst @@ -200,46 +200,43 @@ Then, it is asked to display information about the alpha complex. print('Weighted alpha complex is of dimension ', stree.dimension(), ' - ', stree.num_simplices(), ' simplices - ', stree.num_vertices(), ' vertices.') fmt = '%s -> %.2f' - for filtered_value in stree.get_filtration(): - print(fmt % tuple(filtered_value)) + for simplex in stree.get_simplices(): + print(fmt % tuple(simplex)) The output is: -.. - the line below should be a '.. testoutput::' but order fails in the output on OSx - -.. code-block:: text +.. testoutput:: Weighted alpha complex is of dimension 3 - 29 simplices - 5 vertices. - [0] -> -4.00 - [1] -> -4.00 - [2] -> -4.00 - [3] -> -4.00 + [0, 1, 2, 3] -> -1.00 + [0, 1, 2] -> -1.33 + [0, 1, 3, 4] -> 95.00 + [0, 1, 3] -> -1.33 + [0, 1, 4] -> 95.00 [0, 1] -> -2.00 + [0, 2, 3, 4] -> 95.00 + [0, 2, 3] -> -1.33 + [0, 2, 4] -> 95.00 [0, 2] -> -2.00 - [1, 2] -> -2.00 + [0, 3, 4] -> 23.00 [0, 3] -> -2.00 - [1, 3] -> -2.00 - [2, 3] -> -2.00 - [0, 2, 3] -> -1.33 - [1, 2, 3] -> -1.33 - [0, 1, 2] -> -1.33 - [0, 1, 3] -> -1.33 - [0, 1, 2, 3] -> -1.00 - [4] -> -1.00 - [3, 4] -> -1.00 [0, 4] -> 23.00 - [1, 4] -> 23.00 - [2, 4] -> 23.00 - [0, 3, 4] -> 23.00 + [0] -> -4.00 + [1, 2, 3, 4] -> 95.00 + [1, 2, 3] -> -1.33 + [1, 2, 4] -> 95.00 + [1, 2] -> -2.00 [1, 3, 4] -> 23.00 + [1, 3] -> -2.00 + [1, 4] -> 23.00 + [1] -> -4.00 [2, 3, 4] -> 23.00 - [0, 1, 4] -> 95.00 - [0, 2, 4] -> 95.00 - [1, 2, 4] -> 95.00 - [0, 1, 3, 4] -> 95.00 - [0, 2, 3, 4] -> 95.00 - [1, 2, 3, 4] -> 95.00 + [2, 3] -> -2.00 + [2, 4] -> 23.00 + [2] -> -4.00 + [3, 4] -> -1.00 + [3] -> -4.00 + [4] -> -1.00 Example from OFF file ^^^^^^^^^^^^^^^^^^^^^ -- cgit v1.2.3