Exemple #1
0
def req3(catalog, vera, verb):
    delta_time = -1.0
    delta_memory = -1.0

    tracemalloc.start()
    start_time = getTime()
    start_memory = getMemory()

    md.req3(catalog, vera, verb)

    stop_memory = getMemory()
    stop_time = getTime()
    tracemalloc.stop()

    delta_time = stop_time - start_time
    delta_memory = deltaMemory(start_memory, stop_memory)
    print('Tiempo en s :' + str(delta_time / 1000) + '.      Memoria en kb: ' +
          str(delta_memory) + '.')
def req3(catalog, pais_a, pais_b):
    delta_time = -1.0
    delta_memory = -1.0

    tracemalloc.start()
    start_time = getTime()
    start_memory = getMemory()

    respuesta = model.req3(catalog, pais_a, pais_b)

    stop_memory = getMemory()
    stop_time = getTime()
    tracemalloc.stop()

    delta_time = stop_time - start_time
    delta_memory = deltaMemory(start_memory, stop_memory)

    return respuesta, delta_time, delta_memory
Exemple #3
0
def req3(cont, val_min, val_max, val_mint, val_maxt):

    delta_time = -1.0
    delta_memory = -1.0

    tracemalloc.start()
    start_time = getTime()
    start_memory = getMemory()

    datosInstru = model.req3(cont, val_min, val_max, val_mint, val_maxt)

    stop_memory = getMemory()
    stop_time = getTime()
    tracemalloc.stop()

    delta_time = stop_time - start_time
    delta_memory = deltaMemory(start_memory, stop_memory)

    return datosInstru, delta_time, delta_memory
Exemple #4
0
def req3(catalog, countryA, countryB):
    pointA = None
    pointB = None
    contA = True
    contB = True
    count = 0
    for lp in lt.iterator(catalog['lpoints_list']):
        if countryA in lp and contA == True:
            pointA = (lp.split(";"))[0]
            contA = False
        elif countryB in lp and contB == True:
            pointB = (lp.split(";"))[0]
            contB = False
        if (contA == False and contB == False) or (
                count == int(lt.size(catalog['lpoints_list'])) - 1):
            break
        count += 1
    result = model.req3(catalog, pointA, pointB)
    return result
Exemple #5
0
def req3(catalog, min_instr, max_instr, min_tempo, max_tempo):
    """
    Función que se encarga de iniciar la ejecución del requerimiento
    3 en el model y llevar el resultado al view.
    """
    return model.req3(catalog, min_instr, max_instr, min_tempo, max_tempo)
Exemple #6
0
def req3(catalog, category):
    result = model.req3(catalog, category)
    return result
Exemple #7
0
def req3(analyzer,paisA,paisB):
    return model.req3(analyzer,paisA,paisB)
Exemple #8
0
def req3(catalog, minInstrumentalness, maxInstrumentalness, minTempo,
         maxTempo):

    return model.req3(catalog, minInstrumentalness, maxInstrumentalness,
                      minTempo, maxTempo)
def req3(catalog, pais1, pais2):

    return model.req3(catalog, pais1, pais2)
def req3(datos, pais_a, pais_b):
    return model.req3(datos, pais_a, pais_b)