def ejecutarreq2(analyzer, fecha_min, fecha): t_i = process_time() fecha = datetime.datetime.strptime(fecha, '%Y-%m-%d') result = model.req2(analyzer, fecha_min.date(), fecha.date()) print('Entre esas fechas hubo', result[0], 'accidentes') print('La fecha de más accidentes fue ', result[1], ', ', result[2], 'accidentes') t_f = process_time() print('Procesado en: ' + str(t_f - t_i) + 's')
def req2(cont, minimoE, maximoE, minimoD, maximoD): tracemalloc.start() start_time = getTime() start_memory = getMemory() respuesta = model.req2(cont, minimoE, maximoE, minimoD, maximoD) 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
def req2(Taxis, date, num): date = datetime.datetime.strptime(date, '%Y-%m-%d') return model.req2(Taxis, date.date(), num)
def sccGraph(graph, limit, limit2, vertex): return model.req2(graph, limit * 60, limit2 * 60, vertex)
def ejecutarreq2(citibike, disponible, station1): model.req2(citibike, disponible, station1)
def req2(citibike, initial_time, final_time, initial_vertex): return model.req2(citibike, initial_time, final_time, initial_vertex)
def req2(analyzer, TiempoI, TiempoF, IdEstacionI): tiempoSegundosI = int(TiempoI) * 60 tiempoSegundosF = int(TiempoF) * 60 rutas = model.req2(analyzer, tiempoSegundosI, tiempoSegundosF, IdEstacionI) return rutas