featuremapper/analysis/pinwheels.py
def remove_path_duplicates(self, vertices):
        "Removes successive duplicates along a path of vertices."
        zero_diff_bools = np.all(np.diff(vertices, axis=0) == 0, axis=1)
        duplicate_indices, = np.nonzero(zero_diff_bools)
        return np.delete(vertices, duplicate_indices, axis=0)
Removes successive duplicates along a path of vertices.
Removes successive duplicates along a path of vertices.
Removes successive duplicates along a path of vertices .
def remove_path_duplicates(self, vertices):
        zero_diff_bools = np.all(np.diff(vertices, axis=0) == 0, axis=1)
        duplicate_indices, = np.nonzero(zero_diff_bools)
        return np.delete(vertices, duplicate_indices, axis=0)
def remove_path_duplicates ( self , vertices ) : zero_diff_bools = np . all ( np . diff ( vertices , axis = 0 ) == 0 , axis = 1 ) duplicate_indices , = np . nonzero ( zero_diff_bools ) return np . delete ( vertices , duplicate_indices , axis = 0 )
Removes successive duplicates along a path of vertices.
Removes successive duplicates along a path of vertices .
"Removes successive duplicates along a path of vertices."
self
vertices