Commit 7909edcf authored by Jay's avatar Jay
Browse files

Fixes failing tests for conversion from edge['weight'] to edge['weights']

parent e758b484
Loading
Loading
Loading
Loading
+2 −2
Changes for autocnet/graph/tests/test_edge.py: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -72,8 +72,8 @@ class TestEdge(unittest.TestCase):
        destination.geodata.footprint = poly2

        e.overlap()
        self.assertEqual(e['weight']['overlap_area'], 400)
        self.assertAlmostEqual(e['weight']['overlap_percn'], 14.285714285)
        self.assertEqual(e['weights']['overlap_area'], 400)
        self.assertAlmostEqual(e['weights']['overlap_percn'], 14.285714285)

    def test_coverage(self):
        adjacency = get_path('two_image_adjacency.json')
+1 −1
Changes for autocnet/graph/tests/test_network.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -161,7 +161,7 @@ def test_apply_func_to_edges(graph):
        pass

    mst_graph.extract_features(extractor_parameters={'nfeatures': 50})
    mst_graph.match_features()
    mst_graph.match()
    mst_graph.apply_func_to_edges("symmetry_check")

    # Test passing the func by signature