Commit 9648d61f authored by Adam Paquette's avatar Adam Paquette
Browse files

Removed minor errors and nitpicks.

parent 441f2529
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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)

+1 −1
Original line number Diff line number Diff line
@@ -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