summaryrefslogtreecommitdiff
path: root/src/python/gudhi/persistence_graphical_tools.py
diff options
context:
space:
mode:
authorThéo Lacombe <lacombe1993@gmail.com>2020-03-05 11:31:47 +0100
committerGitHub <noreply@github.com>2020-03-05 11:31:47 +0100
commit05985743182a5e7d462a6a8b872b92c9b8a90404 (patch)
tree0a42a901e7ecb008a58c6a4ae1aa3162a6ede31c /src/python/gudhi/persistence_graphical_tools.py
parent4f4030e9f9e0215c2d1f2431c02cd9270bba2699 (diff)
Update src/python/gudhi/persistence_graphical_tools.py
Co-Authored-By: Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com>
Diffstat (limited to 'src/python/gudhi/persistence_graphical_tools.py')
-rw-r--r--src/python/gudhi/persistence_graphical_tools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/persistence_graphical_tools.py b/src/python/gudhi/persistence_graphical_tools.py
index 48e26432..c9af88f5 100644
--- a/src/python/gudhi/persistence_graphical_tools.py
+++ b/src/python/gudhi/persistence_graphical_tools.py
@@ -51,7 +51,7 @@ def _array_handler(a):
persistence-compatible list (padding with 0), so that the
plot can be performed seamlessly.
'''
- if isinstance(a, np.ndarray):
+ if isinstance(a[0][1], np.float64) or isinstance(a[0][1], float):
return [[0, x] for x in a]
else:
return a