diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2021-06-17 11:01:18 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2021-06-17 11:01:18 +0200 |
commit | 486b281c726cbb6110cfe3c63b3f225690bcd348 (patch) | |
tree | da3fe7d26eb129b2f0f50f29a402384efdc2adcf | |
parent | 2eb2f96248f09e5c793760cfb44ce7b1a40c1af4 (diff) |
Use float as it can be ambiguous. Do not work if we remove np.inf value
-rw-r--r-- | src/python/doc/persistence_graphical_tools_user.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/doc/persistence_graphical_tools_user.rst b/src/python/doc/persistence_graphical_tools_user.rst index d95b9d2b..e1d28c71 100644 --- a/src/python/doc/persistence_graphical_tools_user.rst +++ b/src/python/doc/persistence_graphical_tools_user.rst @@ -60,7 +60,7 @@ of shape (N x 2) encoding a persistence diagram (in a given dimension). import matplotlib.pyplot as plt import gudhi import numpy as np - d = np.array([[0, 1], [1, 2], [1, np.inf]]) + d = np.array([[0., 1.], [1., 2.], [1., np.inf]]) gudhi.plot_persistence_diagram(d) plt.show() |