Loading autocnet/graph/network.py +2 −2 Original line number Diff line number Diff line from collections import OrderedDict import itertools import math import os Loading Loading @@ -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 Loading @@ -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): Loading autocnet/io/network.py +1 −1 Original line number Diff line number Diff line Loading @@ -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 functional_tests/test_three_image.py +0 −11 Original line number Diff line number Diff line Loading @@ -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: Loading functional_tests/test_two_image.py +0 −4 Original line number Diff line number Diff line Loading @@ -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') Loading Loading
autocnet/graph/network.py +2 −2 Original line number Diff line number Diff line from collections import OrderedDict import itertools import math import os Loading Loading @@ -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 Loading @@ -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): Loading
autocnet/io/network.py +1 −1 Original line number Diff line number Diff line Loading @@ -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
functional_tests/test_three_image.py +0 −11 Original line number Diff line number Diff line Loading @@ -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: Loading
functional_tests/test_two_image.py +0 −4 Original line number Diff line number Diff line Loading @@ -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') Loading