Loading autocnet/examples/Apollo15/AS15-M-0295_SML.png 0 → 100644 +906 KiB Loading image diff... autocnet/examples/__init__.py +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ def get_path(example_name): elif example_name == "": return os.path.join(base, 'examples', example_name) else: raise KeyErro(example_name + 'not found in built-in examples') raise KeyError(example_name + 'not found in built-in examples') def available(directory='', verbose=False): """ Loading autocnet/examples/__init__.pyc −12 B (1.69 KiB) File changed.No diff preview for this file type. View original file View changed file autocnet/graph/network.py +8 −2 Original line number Diff line number Diff line from collections import Hashable from networkx import MultiDiGraph from networkx import DiGraph class CandidateGraph(MultiDiGraph): class CandidateGraph(DiGraph): def __init__(self,*args, **kwargs): super(CandidateGraph,self).__init__(*args, **kwargs) def add_image(self, identifier): """ Parameters ========== identifier : object A Python hashable object to be used as the node key """ if isinstance(identifier, Hashable): self.add_node(identifier) else: Loading autocnet/graph/network.pyc +148 B (1.15 KiB) File changed.No diff preview for this file type. View original file View changed file Loading
autocnet/examples/__init__.py +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ def get_path(example_name): elif example_name == "": return os.path.join(base, 'examples', example_name) else: raise KeyErro(example_name + 'not found in built-in examples') raise KeyError(example_name + 'not found in built-in examples') def available(directory='', verbose=False): """ Loading
autocnet/examples/__init__.pyc −12 B (1.69 KiB) File changed.No diff preview for this file type. View original file View changed file
autocnet/graph/network.py +8 −2 Original line number Diff line number Diff line from collections import Hashable from networkx import MultiDiGraph from networkx import DiGraph class CandidateGraph(MultiDiGraph): class CandidateGraph(DiGraph): def __init__(self,*args, **kwargs): super(CandidateGraph,self).__init__(*args, **kwargs) def add_image(self, identifier): """ Parameters ========== identifier : object A Python hashable object to be used as the node key """ if isinstance(identifier, Hashable): self.add_node(identifier) else: Loading
autocnet/graph/network.pyc +148 B (1.15 KiB) File changed.No diff preview for this file type. View original file View changed file