We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c4bbc8 commit 49533d3Copy full SHA for 49533d3
scipy/cluster/tests/test_hierarchy.py
@@ -814,12 +814,13 @@ def test_leaves_list_iris_average(self):
814
self.assertTrue((node.pre_order() == leaves_list(Z)).all())
815
816
def test_iris_subtree_pre_order(self):
817
- "Tests that pre_order() works when called on sub-trees."
+ # Tests that pre_order() works when called on sub-trees.
818
X = eo['iris']
819
Y = pdist(X)
820
Z = linkage(X, 'single')
821
node = to_tree(Z)
822
- self.assertTrue(node.pre_order() == (node.get_left().pre_order() + node.get_right().pre_order()))
+ self.assertTrue(node.pre_order() == (node.get_left().pre_order()
823
+ + node.get_right().pre_order()))
824
825
826
class TestCorrespond(TestCase):
0 commit comments