summaryrefslogtreecommitdiff
path: root/src/python/test/test_persistence_graphical_tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/test/test_persistence_graphical_tools.py')
-rw-r--r--src/python/test/test_persistence_graphical_tools.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/python/test/test_persistence_graphical_tools.py b/src/python/test/test_persistence_graphical_tools.py
index 7d9bae90..c19836b7 100644
--- a/src/python/test/test_persistence_graphical_tools.py
+++ b/src/python/test/test_persistence_graphical_tools.py
@@ -15,7 +15,7 @@ import pytest
def test_array_handler():
- diags = np.array([[1, 2], [3, 4], [5, 6]], np.float)
+ diags = np.array([[1, 2], [3, 4], [5, 6]], float)
arr_diags = gd.persistence_graphical_tools._array_handler(diags)
for idx in range(len(diags)):
assert arr_diags[idx][0] == 0
@@ -96,10 +96,14 @@ def test_limit_to_max_intervals():
def _limit_plot_persistence(function):
- pplot = function(persistence=[()])
- assert issubclass(type(pplot), plt.axes.SubplotBase)
+ pplot = function(persistence=[])
+ assert isinstance(pplot, plt.axes.SubplotBase)
+ pplot = function(persistence=[], legend=True)
+ assert isinstance(pplot, plt.axes.SubplotBase)
pplot = function(persistence=[(0, float("inf"))])
- assert issubclass(type(pplot), plt.axes.SubplotBase)
+ assert isinstance(pplot, plt.axes.SubplotBase)
+ pplot = function(persistence=[(0, float("inf"))], legend=True)
+ assert isinstance(pplot, plt.axes.SubplotBase)
def test_limit_plot_persistence():