Loading autocnet/graph/edge.py +1 −2 Original line number Diff line number Diff line Loading @@ -11,7 +11,6 @@ from scipy.spatial.distance import cdist import autocnet from autocnet.graph.node import Node from autocnet.utils import utils # from autocnet.utils.utils import methdispatch from autocnet.matcher import cpu_outlier_detector as od from autocnet.matcher import suppression_funcs as spf from autocnet.matcher import subpixel as sp Loading Loading @@ -201,7 +200,7 @@ class Edge(dict, MutableMapping): # Set the initial state of the fundamental mask in the masks self.masks[maskname] = mask @utils.methdispatch @utils.methodispatch def get_keypoints(self, node, index=None, homogeneous=False): if not hasattr(index, '__iter__') and index is not None: raise TypeError Loading autocnet/utils/tests/test_utils.py +1 −1 Original line number Diff line number Diff line Loading @@ -148,7 +148,7 @@ class TestUtils(unittest.TestCase): for k, v in kwargs.items(): setattr(self, k, v) @utils.methdispatch @utils.methodispatch def get(self, arg): return getattr(self, arg, None) Loading autocnet/utils/utils.py +1 −1 Original line number Diff line number Diff line Loading @@ -342,7 +342,7 @@ def array_to_poly(array): return poly def methdispatch(func): def methodispatch(func): """ New dispatch decorator that looks at the second argument to avoid self Loading Loading
autocnet/graph/edge.py +1 −2 Original line number Diff line number Diff line Loading @@ -11,7 +11,6 @@ from scipy.spatial.distance import cdist import autocnet from autocnet.graph.node import Node from autocnet.utils import utils # from autocnet.utils.utils import methdispatch from autocnet.matcher import cpu_outlier_detector as od from autocnet.matcher import suppression_funcs as spf from autocnet.matcher import subpixel as sp Loading Loading @@ -201,7 +200,7 @@ class Edge(dict, MutableMapping): # Set the initial state of the fundamental mask in the masks self.masks[maskname] = mask @utils.methdispatch @utils.methodispatch def get_keypoints(self, node, index=None, homogeneous=False): if not hasattr(index, '__iter__') and index is not None: raise TypeError Loading
autocnet/utils/tests/test_utils.py +1 −1 Original line number Diff line number Diff line Loading @@ -148,7 +148,7 @@ class TestUtils(unittest.TestCase): for k, v in kwargs.items(): setattr(self, k, v) @utils.methdispatch @utils.methodispatch def get(self, arg): return getattr(self, arg, None) Loading
autocnet/utils/utils.py +1 −1 Original line number Diff line number Diff line Loading @@ -342,7 +342,7 @@ def array_to_poly(array): return poly def methdispatch(func): def methodispatch(func): """ New dispatch decorator that looks at the second argument to avoid self Loading