def filter_vectors(self, input_list):
        """
        Returns subset of specified input list.
        """
        unique_dict = {}
        for v in input_list:
            unique_dict[v[1]] = v
        return list(unique_dict.values())
def filter_vectors ( self , input_list ) : unique_dict = { } for v in input_list : unique_dict [ v [ 1 ] ] = v return list ( unique_dict . values ( ) )
Returns subset of specified input list.