Commit e8ba24e6 authored by jay's avatar jay
Browse files

fixes the API breakages caused by a plio change

parent 100db90a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
from collections import OrderedDict
import itertools
import math
import os
@@ -83,7 +84,6 @@ class CandidateGraph(nx.Graph):
        self.graph['creationdate'] = strftime("%Y-%m-%d %H:%M:%S", gmtime())
        self.graph['modifieddate'] = strftime("%Y-%m-%d %H:%M:%S", gmtime())

        self._order_adjacency()

    def __eq__(self, other):
        eq = True
@@ -97,7 +97,7 @@ class CandidateGraph(nx.Graph):
        return eq

    def _order_adjacency(self):  # pragma: no cover
        self.adj = sorted(self.adj.items())
        self.adj = OrderedDict(sorted(self.adj.items()))

    @property
    def maxsize(self):
+1 −1
Original line number Diff line number Diff line
@@ -127,5 +127,5 @@ def load(projectname):
            # Add a mock edge
            cg.edge[e['source']][e['target']] = edge

            cg._order_adjacency
            cg._order_adjacency()
    return cg
+0 −11
Original line number Diff line number Diff line
@@ -53,18 +53,7 @@ class TestThreeImageMatching(unittest.TestCase):
        cg.apply_func_to_edges("compute_homography", clean_keys=['symmetry', 'ratio'])
        cg.compute_fundamental_matrices(clean_keys=['symmetry', 'ratio'], reproj_threshold=3.0, method='ransac')

        # Step: And create a C object
        cg.generate_cnet(clean_keys=['symmetry', 'ratio', 'fundamental'])

        # Step: Create a fromlist to go with the cnet and write it to a file
        filelist = cg.to_filelist()
        write_filelist(filelist, 'TestThreeImageMatching_fromlist.lis')

        # Step: Create a correspondence network
        cg.generate_cnet(clean_keys=['fundamental'], deepen=True)

        to_isis('TestThreeImageMatching.net', cg.cn, mode='wb',
                networkid='TestThreeImageMatching', targetname='Moon')

    def tearDown(self):
        try:
+0 −4
Original line number Diff line number Diff line
@@ -87,10 +87,6 @@ class TestTwoImageMatching(unittest.TestCase):
        filelist = cg.to_filelist()
        write_filelist(filelist, path="fromlis.lis")

        # Step: Output a control network
        to_isis('TestTwoImageMatching.net', cg.cn, mode='wb',
                networkid='TestTwoImageMatching', targetname='Moon')

    def tearDown(self):
        try:
            os.remove('TestTwoImageMatching.net')