Example #1
0
def testNoCrashInvalidArguments():
    c = Cyclops('localhost:8090')

    try:
        c.getPoints(['ds', 'gloup'])
    except:
        pass

    try:
        c.nnSearchById(['ds', 'gloup'])
    except:
        pass

    try:
        print(
            list(
                c.nnSearchById(
                    "gloup.mp3", 'ds', {
                        'distance': 'euclidean',
                        'params': {
                            'descriptorNames': '*.mean'
                        }
                    }).get(10, keys=['tempotap_bpm'])))
    except:
        pass
Example #2
0
def testNoCrashInvalidArguments():
    c = Cyclops('localhost:8090')

    try: c.getPoints([ 'ds', 'gloup' ])
    except: pass

    try: c.nnSearchById([ 'ds', 'gloup' ])
    except: pass

    try:
        print list(c.nnSearchById("gloup.mp3",
                                  'ds', { 'distance': 'euclidean',
                                          'params': { 'descriptorNames': '*.mean' }}).get(10, keys = [ 'tempotap_bpm' ]))
    except:
        pass