Loading autocnet/graph/network.py +3 −3 Original line number Diff line number Diff line Loading @@ -94,8 +94,8 @@ class CandidateGraph(nx.Graph): """ #node_factory = Node #edge_factory = Edge node_factory = Node edge_factory = Edge measures_keys = ['point_id', 'image_index', 'keypoint_index', 'edge', 'match_idx', 'x', 'y', 'x_off', 'y_off', 'corr'] # dtypes are usful for allowing merges, otherwise they default to object Loading Loading @@ -138,7 +138,7 @@ class CandidateGraph(nx.Graph): self.graph['node_name_map'][i] = node_id # Relabel the nodes in place to use integer node ids nx.relabel_nodes(self, self.graph['node_name_map'], copy=False) # nx.relabel_nodes(self, self.graph['node_name_map'], copy=False) for s, d, e in self.edges(data=True): if s > d: s, d = d, s Loading autocnet/graph/node.py +0 −3 Original line number Diff line number Diff line Loading @@ -705,7 +705,6 @@ class NetworkNode(Node): footprint_latlon = cam_type = None if exist_check: print('ERRORRRORORORORRR!!!') footprint_latlon, cam_type = self.footprint_from_database() # not in database, create footprint Loading @@ -715,13 +714,11 @@ class NetworkNode(Node): t1 = time.time() footprint_latlon, cam_type = self.footprint_from_isis() t2 = time.time() print(f'time to get ISIS footprint: {t2 - t1}') else: # Get CSM footprint t1 = time.time() footprint_latlon, cam_type = self.footprint_from_csm() t2 = time.time() print(f'time to get CSM footprint: {t2 - t1}') return footprint_latlon, cam_type Loading Loading
autocnet/graph/network.py +3 −3 Original line number Diff line number Diff line Loading @@ -94,8 +94,8 @@ class CandidateGraph(nx.Graph): """ #node_factory = Node #edge_factory = Edge node_factory = Node edge_factory = Edge measures_keys = ['point_id', 'image_index', 'keypoint_index', 'edge', 'match_idx', 'x', 'y', 'x_off', 'y_off', 'corr'] # dtypes are usful for allowing merges, otherwise they default to object Loading Loading @@ -138,7 +138,7 @@ class CandidateGraph(nx.Graph): self.graph['node_name_map'][i] = node_id # Relabel the nodes in place to use integer node ids nx.relabel_nodes(self, self.graph['node_name_map'], copy=False) # nx.relabel_nodes(self, self.graph['node_name_map'], copy=False) for s, d, e in self.edges(data=True): if s > d: s, d = d, s Loading
autocnet/graph/node.py +0 −3 Original line number Diff line number Diff line Loading @@ -705,7 +705,6 @@ class NetworkNode(Node): footprint_latlon = cam_type = None if exist_check: print('ERRORRRORORORORRR!!!') footprint_latlon, cam_type = self.footprint_from_database() # not in database, create footprint Loading @@ -715,13 +714,11 @@ class NetworkNode(Node): t1 = time.time() footprint_latlon, cam_type = self.footprint_from_isis() t2 = time.time() print(f'time to get ISIS footprint: {t2 - t1}') else: # Get CSM footprint t1 = time.time() footprint_latlon, cam_type = self.footprint_from_csm() t2 = time.time() print(f'time to get CSM footprint: {t2 - t1}') return footprint_latlon, cam_type Loading