summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-01-07 12:27:19 +0100
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-01-07 12:27:19 +0100
commit82b556c554a60e3b05942ba53300463dc00b8538 (patch)
treeb29fb1342e8877fa196fcbba16c3cbcc99447743
parentd832d3585bf47c48f28d861469730fc47f4956c8 (diff)
Code review: use list in examples instead of numpy arrays
-rw-r--r--src/python/doc/cubical_complex_user.rst4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/python/doc/cubical_complex_user.rst b/src/python/doc/cubical_complex_user.rst
index d56c8789..6fdcd9df 100644
--- a/src/python/doc/cubical_complex_user.rst
+++ b/src/python/doc/cubical_complex_user.rst
@@ -142,9 +142,7 @@ Or it can be defined as follows:
.. testcode::
from gudhi import PeriodicCubicalComplex as pcc
- from numpy import array as np_array
- periodic_cc = pcc(top_dimensional_cells = np_array([[0, 0, 0], [0, 1, 0], [0, 0, 0]]),
- periodic_dimensions=[True, False])
+ periodic_cc = pcc(top_dimensional_cells = [[0, 0, 0], [0, 1, 0], [0, 0, 0]]
result_str = 'Periodic cubical complex is of dimension ' + repr(periodic_cc.dimension()) + ' - ' + \
repr(periodic_cc.num_simplices()) + ' simplices.'
print(result_str)